Changeset 40084 for branches/4.7
- Timestamp:
- 02/20/2017 06:34:17 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/js/wp-api.js
r39682 r40084 186 186 187 187 // We already have args, merge these new args in. 188 modelInstance.prototype.args = _. union( routeEndpoint.args, modelInstance.prototype.defaults );188 modelInstance.prototype.args = _.extend( modelInstance.prototype.args, routeEndpoint.args ); 189 189 } 190 190 } … … 203 203 204 204 // We already have options, merge these new args in. 205 modelInstance.prototype.options = _. union( routeEndpoint.args, modelInstance.prototype.options );205 modelInstance.prototype.options = _.extend( modelInstance.prototype.options, routeEndpoint.args ); 206 206 } 207 207 }
Note: See TracChangeset
for help on using the changeset viewer.