X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fassets%2Fvendor%2Fjquery-once%2Fjquery.once.js;h=f0ed4d0a4b9c4b42001ef8e99869795ee78aa31f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=471dd535cde286fd587ebe6c13a52f21396d945a;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/assets/vendor/jquery-once/jquery.once.js b/web/core/assets/vendor/jquery-once/jquery.once.js index 471dd535c..f0ed4d0a4 100644 --- a/web/core/assets/vendor/jquery-once/jquery.once.js +++ b/web/core/assets/vendor/jquery-once/jquery.once.js @@ -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'; /** @@ -40,13 +40,13 @@ * * @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; }; @@ -173,4 +173,4 @@ return $(this).data(name) === true; }); }; -})); +});