8000 reduce condition checks · plotly/plotly.js@57cec14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57cec14

Browse files
committed
reduce condition checks
1 parent 642bf28 commit 57cec14

File tree

1 file changed

+1
-3
lines changed 8000

1 file changed

+1
-3
lines changed

src/lib/coerce.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,9 @@ function _coerce(containerIn, containerOut, attributes, attribute, dflt) {
420420
exports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {
421421
var out = _coerce(containerIn, containerOut, attributes, attribute, dflt);
422422
var valOut = out.value;
423-
var theDefault = out.default;
424423
if(
425424
valOut !== undefined &&
426-
theDefault !== undefined &&
427-
theDefault !== valOut
425+
valOut !== out.default
428426
) {
429427
return valOut;
430428
}

0 commit comments

Comments
 (0)
0