Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8428cce commit 2bb9891Copy full SHA for 2bb9891
1 file changed
IPython/html/static/widgets/js/widget.js
@@ -152,11 +152,12 @@ define(["widgets/js/manager",
152
var attrs = (method === 'patch') ? options.attrs : model.toJSON(options);
153
if (this.state_lock !== null) {
154
var keys = Object.keys(this.state_lock);
155
- for (var i=0; i<keys.length; i++)
+ for (var i=0; i<keys.length; i++) {
156
var key = keys[i];
157
if (attrs[key] === this.state_lock[key]) {
158
delete attrs[key];
159
}
160
+ }
161
162
163
// Only sync if there are attributes to send to the back-end.
0 commit comments