Changeset 40040
- Timestamp:
- 02/03/2017 09:45:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-api.js
r39680 r40040 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.