Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / quickedit / js / models / BaseModel.js
index 7579b6f03b0d92de443eddb250b5be8fd611567a..c37eb921b6bbe088afb5227277b201cba7dcbf99 100644 (file)
@@ -1,51 +1,22 @@
 /**
- * @file
- * A Backbone Model subclass that enforces validation when calling set().
- */
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
+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; };
 
 (function (Drupal, Backbone) {
-
-  'use strict';
-
-  Drupal.quickedit.BaseModel = Backbone.Model.extend(/** @lends Drupal.quickedit.BaseModel# */{
-
-    /**
-     * @constructs
-     *
-     * @augments Backbone.Model
-     *
-     * @param {object} options
-     *   Options for the base model-
-     *
-     * @return {Drupal.quickedit.BaseModel}
-     *   A quickedit base model.
-     */
-    initialize: function (options) {
+  Drupal.quickedit.BaseModel = Backbone.Model.extend({
+    initialize: function initialize(options) {
       this.__initialized = true;
       return Backbone.Model.prototype.initialize.call(this, options);
     },
-
-    /**
-     * Set a value on the model
-     *
-     * @param {object|string} key
-     *   The key to set a value for.
-     * @param {*} val
-     *   The value to set.
-     * @param {object} [options]
-     *   Options for the model.
-     *
-     * @return {*}
-     *   The result of `Backbone.Model.prototype.set` with the specified
-     *   parameters.
-     */
-    set: function (key, val, options) {
+    set: function set(key, val, options) {
       if (this.__initialized) {
-        // Deal with both the "key", value and {key:value}-style arguments.
-        if (typeof key === 'object') {
+        if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object') {
           key.validate = true;
-        }
-        else {
+        } else {
           if (!options) {
             options = {};
           }
@@ -54,7 +25,5 @@
       }
       return Backbone.Model.prototype.set.call(this, key, val, options);
     }
-
   });
-
-}(Drupal, Backbone));
+})(Drupal, Backbone);
\ No newline at end of file