/*!
- * 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
/* 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;
});
};
-}));
+});