Mercurial > hg > isophonics-drupal-site
annotate core/assets/vendor/jquery-once/jquery.once.min.js @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 /*! |
Chris@0 | 2 * jQuery Once v2.2.0 - http://github.com/robloach/jquery-once |
Chris@0 | 3 * @license MIT, GPL-2.0 |
Chris@0 | 4 * http://opensource.org/licenses/MIT |
Chris@0 | 5 * http://opensource.org/licenses/GPL-2.0 |
Chris@0 | 6 */ |
Chris@0 | 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 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})}}); |
Chris@0 | 8 //# sourceMappingURL=jquery.once.min.js.map |