diff options
author | Rob Loach <robloach@gmail.com> | 2014-12-15 11:02:11 -0500 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2014-12-15 11:02:11 -0500 |
commit | a8bbc28c950093b4192060f1751744c7f81c145e (patch) | |
tree | f66bbb9db044ea1dfb2e598a0c05295a72d53d09 /jquery.once.min.js | |
parent | 4e47cb9089340aa069e94fa1bf8ee6886d3b780a (diff) | |
parent | 6a2ab3c7f9d58f2d47398ac29af06dec14c4612e (diff) | |
download | jquery-once-a8bbc28c950093b4192060f1751744c7f81c145e.zip jquery-once-a8bbc28c950093b4192060f1751744c7f81c145e.tar.gz jquery-once-a8bbc28c950093b4192060f1751744c7f81c145e.tar.bz2 |
Initial run of Grunt removal
Diffstat (limited to 'jquery.once.min.js')
-rw-r--r-- | jquery.once.min.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/jquery.once.min.js b/jquery.once.min.js index 4024502..06c9519 100644 --- a/jquery.once.min.js +++ b/jquery.once.min.js @@ -1,8 +1,4 @@ -/*! - * jQuery Once v2.0.0-alpha.9 - 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";e.fn.once=function(n){if(!n){throw new Error("An ID is required when calling jQuery.once()")}var r="jquery-once-"+n;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-"+e)};e.fn.findOnce=function(n){var r="jquery-once-"+n;return this.filter(function(){return e(this).data(r)===true})}}); -//# sourceMappingURL=jquery.once.min.js.map
\ No newline at end of file +/*! jQuery Once - v2.0.0-alpha.9 - 12/15/2014 - https://github.com/RobLoach/jquery-once + * (c) 2014 Rob Loach (http://github.com/RobLoach) + * Licensed GPL-2.0, MIT */ +!function(a){"use strict";"object"==typeof exports?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";a.fn.once=function(b){if(b=b||"once","string"!=typeof b)throw new Error("jQuery.once() parameter MUST be a string");var c="jquery-once-"+b;return this.filter(function(){return a(this).data(c)!==!0}).data(c,!0)},a.fn.removeOnce=function(a){return this.findOnce(a).removeData("jquery-once-"+a)},a.fn.findOnce=function(b){var c="jquery-once-"+b;return this.filter(function(){return a(this).data(c)===!0})}}); |