Ticket #51420: 51420.patch
File 51420.patch, 2.0 KB (added by , 4 years ago) |
---|
-
src/js/_enqueues/wp/api.js
363 363 * @param {string} parentModel The parent model. 364 364 * @param {number} modelId The model ID if the object to request 365 365 * @param {string} modelName The model name to use when constructing the model. 366 * @param {string} embedSourcePoint Where to check the embedd sobject for _embed data.366 * @param {string} embedSourcePoint Where to check the embedded object for _embed data. 367 367 * @param {string} embedCheckField Which model field to check to see if the model has data. 368 368 * 369 369 * @return {Deferred.promise} A promise which resolves to the constructed model. … … 416 416 * 417 417 * @param {string} parentModel The parent model. 418 418 * @param {string} collectionName The name to use when constructing the collection. 419 * @param {string} embedSourcePoint Where to check the embedd sobject for _embed data.420 * @param {string} embedIndex An addi itonal optional index for the _embed data.419 * @param {string} embedSourcePoint Where to check the embedded object for _embed data. 420 * @param {string} embedIndex An additional optional index for the _embed data. 421 421 * 422 422 * @return {Deferred.promise} A promise which resolves to the constructed collection. 423 423 */ … … 425 425 /** 426 426 * Returns a promise that resolves to the requested collection 427 427 * 428 * Uses the embedded data if available, otherwise sfetches the428 * Uses the embedded data if available, otherwise fetches the 429 429 * data from the server. 430 430 * 431 431 * @return {Deferred.promise} promise Resolves to a wp.api.collections[ collectionName ] … … 1057 1057 }; 1058 1058 } 1059 1059 1060 // Continue by calling Bac ckbone's sync.1060 // Continue by calling Backbone's sync. 1061 1061 return Backbone.sync( method, model, options ); 1062 1062 }, 1063 1063