X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Fmodels%2FEditorModel.js;fp=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Fmodels%2FEditorModel.js;h=ea044b8ba18770d98e8901a4c7c0a4981ba8c463;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=4b6177bc43fdb007930359539f071e6363246ad9;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/quickedit/js/models/EditorModel.js b/web/core/modules/quickedit/js/models/EditorModel.js index 4b6177bc4..ea044b8ba 100644 --- a/web/core/modules/quickedit/js/models/EditorModel.js +++ b/web/core/modules/quickedit/js/models/EditorModel.js @@ -1,54 +1,19 @@ /** - * @file - * A Backbone Model for the state of an in-place editor. - * - * @see Drupal.quickedit.EditorView - */ +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ (function (Backbone, Drupal) { - - 'use strict'; - - /** - * @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# */{ - - /** - * 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} - */ + Drupal.quickedit.EditorModel = Backbone.Model.extend({ + defaults: { originalValue: null, - /** - * Analogous to originalValue, but the current value. - * - * @type {string} - */ currentValue: null, - /** - * Stores any validation errors to be rendered. - * - * @type {Array} - */ validationErrors: null } }); - -}(Backbone, Drupal)); +})(Backbone, Drupal); \ No newline at end of file