diff options
author | Rob Loach <robloach@gmail.com> | 2014-11-03 00:42:50 -0800 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2014-11-03 00:42:50 -0800 |
commit | 43af89bfb0d71acf447ab3c21b552facb461da6a (patch) | |
tree | 638a10e1ecaeb9d143a861255a5667c4b9d95da7 /jquery.once.min.js | |
parent | ad87ba262b4ae6b64e31b10ef9bced5168d8e467 (diff) | |
parent | 2dde6eb29fa82af61ddba108da42c79cab60f100 (diff) | |
download | jquery-once-43af89bfb0d71acf447ab3c21b552facb461da6a.zip jquery-once-43af89bfb0d71acf447ab3c21b552facb461da6a.tar.gz jquery-once-43af89bfb0d71acf447ab3c21b552facb461da6a.tar.bz2 |
Update CoffeeScript source
Diffstat (limited to 'jquery.once.min.js')
-rw-r--r-- | jquery.once.min.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jquery.once.min.js b/jquery.once.min.js index 5c222a8..45302c6 100644 --- a/jquery.once.min.js +++ b/jquery.once.min.js @@ -1,4 +1,4 @@ -/*! jQuery Once - v2.0.0-alpha.6 - 10/7/2014 - https://github.com/RobLoach/jquery-once - * (c) 2014 Rob Loach (http://github.com/robloach) +/*! jQuery Once - v2.0.0-alpha.9 - 10/16/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";var b={},c=0;a.fn.once=function(d){"string"!=typeof d&&(d in b||(b[d]=++c),d=b[d]);var e="jquery-once-"+d;return this.filter(function(){return a(this).data(e)!==!0}).data(e,!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})}});
\ No newline at end of file +!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)throw new Error("An ID is required when calling jQuery.once()");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})}});
\ No newline at end of file |