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