Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bb9891

Browse files
committed
state_lock loop
1 parent 8428cce commit 2bb9891

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IPython/html/static/widgets/js/widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,12 @@ define(["widgets/js/manager",
152152
var attrs = (method === 'patch') ? options.attrs : model.toJSON(options);
153153
if (this.state_lock !== null) {
154154
var keys = Object.keys(this.state_lock);
155-
for (var i=0; i<keys.length; i++)
155+
for (var i=0; i<keys.length; i++) {
156156
var key = keys[i];
157157
if (attrs[key] === this.state_lock[key]) {
158158
delete attrs[key];
159159
}
160+
}
160161
}
161162

162163
// Only sync if there are attributes to send to the back-end.

0 commit comments

Comments
 (0)