Mercurial > hg > isophonics-drupal-site
diff core/assets/vendor/jquery-once/jquery.once.min.js @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/assets/vendor/jquery-once/jquery.once.min.js Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,8 @@ +/*! + * 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 + */ +(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 TypeError("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})}}); +//# sourceMappingURL=jquery.once.min.js.map \ No newline at end of file