X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Fmodels%2FEditorModel.es6.js;fp=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Fmodels%2FEditorModel.es6.js;h=06455b041530fec819ab49aa4bdce0696460906b;hp=0de298536df67ac2dd6c5bb6708e3048bbe8cd90;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/quickedit/js/models/EditorModel.es6.js b/web/core/modules/quickedit/js/models/EditorModel.es6.js index 0de298536..06455b041 100644 --- a/web/core/modules/quickedit/js/models/EditorModel.es6.js +++ b/web/core/modules/quickedit/js/models/EditorModel.es6.js @@ -5,46 +5,45 @@ * @see Drupal.quickedit.EditorView */ -(function (Backbone, Drupal) { +(function(Backbone, Drupal) { /** * @constructor * * @augments Backbone.Model */ - Drupal.quickedit.EditorModel = Backbone.Model.extend(/** @lends Drupal.quickedit.EditorModel# */{ - - /** - * @type {object} - * - * @prop {string} originalValue - * @prop {string} currentValue - * @prop {Array} validationErrors - */ - defaults: /** @lends Drupal.quickedit.EditorModel# */{ - + Drupal.quickedit.EditorModel = Backbone.Model.extend( + /** @lends Drupal.quickedit.EditorModel# */ { /** - * Not the full HTML representation of this field, but the "actual" - * original value of the field, stored by the used in-place editor, and - * in a representation that can be chosen by the in-place editor. + * @type {object} * - * @type {string} + * @prop {string} originalValue + * @prop {string} currentValue + * @prop {Array} validationErrors */ - originalValue: null, + defaults: /** @lends Drupal.quickedit.EditorModel# */ { + /** + * Not the full HTML representation of this field, but the "actual" + * original value of the field, stored by the used in-place editor, and + * in a representation that can be chosen by the in-place editor. + * + * @type {string} + */ + originalValue: null, - /** - * Analogous to originalValue, but the current value. - * - * @type {string} - */ - currentValue: null, + /** + * Analogous to originalValue, but the current value. + * + * @type {string} + */ + currentValue: null, - /** - * Stores any validation errors to be rendered. - * - * @type {Array} - */ - validationErrors: null, + /** + * Stores any validation errors to be rendered. + * + * @type {Array} + */ + validationErrors: null, + }, }, - - }); -}(Backbone, Drupal)); + ); +})(Backbone, Drupal);