Security update for Core, with self-updated composer
[yaffs-website] / web / core / assets / vendor / jquery-once / jquery.once.js
index 471dd535cde286fd587ebe6c13a52f21396d945a..f0ed4d0a4b9c4b42001ef8e99869795ee78aa31f 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * jQuery Once v2.1.1 - http://github.com/robloach/jquery-once
+ * jQuery Once v2.2.0 - http://github.com/robloach/jquery-once
  * @license MIT, GPL-2.0
  *   http://opensource.org/licenses/MIT
  *   http://opensource.org/licenses/GPL-2.0
@@ -29,7 +29,7 @@
     /* globals jQuery */
     factory(jQuery);
   }
-}(function ($) {
+})(function ($) {
   'use strict';
 
   /**
    *
    * @returns The valid ID name.
    *
-   * @throws Error when an ID is provided, but not a string.
+   * @throws TypeError when an ID is provided, but not a string.
    * @private
    */
   var checkId = function (id) {
     id = id || 'once';
     if (typeof id !== 'string') {
-      throw new Error('The jQuery Once id parameter must be a string');
+      throw new TypeError('The jQuery Once id parameter must be a string');
     }
     return id;
   };
       return $(this).data(name) === true;
     });
   };
-}));
+});