Show More
@@ -152,12 +152,13 b' define(["widgets/js/manager",' | |||||
152 | var attrs = (method === 'patch') ? options.attrs : model.toJSON(options); |
|
152 | var attrs = (method === 'patch') ? options.attrs : model.toJSON(options); | |
153 | if (this.state_lock !== null) { |
|
153 | if (this.state_lock !== null) { | |
154 | var keys = Object.keys(this.state_lock); |
|
154 | 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++) { | |
156 | var key = keys[i]; |
|
156 | var key = keys[i]; | |
157 | if (attrs[key] === this.state_lock[key]) { |
|
157 | if (attrs[key] === this.state_lock[key]) { | |
158 | delete attrs[key]; |
|
158 | delete attrs[key]; | |
159 | } |
|
159 | } | |
160 | } |
|
160 | } | |
|
161 | } | |||
161 |
|
162 | |||
162 | // Only sync if there are attributes to send to the back-end. |
|
163 | // Only sync if there are attributes to send to the back-end. | |
163 | attrs = this._pack_models(attrs); |
|
164 | attrs = this._pack_models(attrs); |
General Comments 0
You need to be logged in to leave comments.
Login now