Skip to content

Commit 8776770

Browse files
committed
Fix test for whether object has set keys
1 parent 5506fe9 commit 8776770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/_base/Three.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class ThreeModel extends widgets.WidgetModel {
440440
toSet[propName] = converterFn.bind(this)(this.obj[propName], propName);
441441
}, this);
442442

443-
if (toSet) {
443+
if (Object.keys(toSet).length) {
444444
// Apply all direct changes at once
445445
this.set(toSet, 'pushFromThree');
446446
}

0 commit comments

Comments
 (0)