2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
7 var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
9 (function (Drupal, Backbone) {
10 Drupal.quickedit.BaseModel = Backbone.Model.extend({
11 initialize: function initialize(options) {
12 this.__initialized = true;
13 return Backbone.Model.prototype.initialize.call(this, options);
15 set: function set(key, val, options) {
16 if (this.__initialized) {
17 if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object') {
23 options.validate = true;
26 return Backbone.Model.prototype.set.call(this, key, val, options);