Version 1
[yaffs-website] / web / core / assets / vendor / jquery-once / jquery.once.min.js
1 /*!
2  * jQuery Once v2.1.1 - http://github.com/robloach/jquery-once
3  * @license MIT, GPL-2.0
4  *   http://opensource.org/licenses/MIT
5  *   http://opensource.org/licenses/GPL-2.0
6  */
7 (function(e){"use strict";if(typeof exports==="object"){e(require("jquery"))}else if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){"use strict";var n=function(e){e=e||"once";if(typeof e!=="string"){throw new Error("The jQuery Once id parameter must be a string")}return e};e.fn.once=function(t){var r="jquery-once-"+n(t);return this.filter(function(){return e(this).data(r)!==true}).data(r,true)};e.fn.removeOnce=function(e){return this.findOnce(e).removeData("jquery-once-"+n(e))};e.fn.findOnce=function(t){var r="jquery-once-"+n(t);return this.filter(function(){return e(this).data(r)===true})}});
8 //# sourceMappingURL=jquery.once.min.js.map