diff options
author | Rob Loach <robloach@gmail.com> | 2014-09-27 14:43:21 -0700 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2014-09-27 14:43:21 -0700 |
commit | e51e4834a3d0499d9a2c6b420ff254a59494a78b (patch) | |
tree | 2f83ecd5db64ad7ed7cd51b9e62a175c18144b75 | |
parent | 9db78a102f7a6e140e966c4db92b8dbe91a1103e (diff) | |
download | jquery-once-e51e4834a3d0499d9a2c6b420ff254a59494a78b.zip jquery-once-e51e4834a3d0499d9a2c6b420ff254a59494a78b.tar.gz jquery-once-e51e4834a3d0499d9a2c6b420ff254a59494a78b.tar.bz2 |
Update to 2.0.0-alpha.2
-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 77ee983..c3d5d79 100644 --- a/jquery.once.min.js +++ b/jquery.once.min.js @@ -1,4 +1,4 @@ -/*! jquery-once - v1.2.6 - 9/11/2013 - http://github.com/robloach/jquery-once - * (c) 2013 Rob Loach (http://robloach.net) +/*! jQuery Once - v2.0.0-alpha.2 - 9/27/2014 - http://github.com/robloach/jquery-once + * (c) 2014 Rob Loach <robloach@gmail.com> (http://github.com/robloach) * Licensed GPL-2.0, MIT */ -(function(e){"use strict";"object"==typeof exports?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){"use strict";var n={},t=0;e.fn.once=function(r,i){"string"!=typeof r&&(r in n||(n[r]=++t),i||(i=r),r="jquery-once-"+n[r]);var o=r+"-processed",s=this.not("."+o).addClass(o);return e.isFunction(i)?s.each(i):s},e.fn.removeOnce=function(n,t){var r=n+"-processed",i=this.filter("."+r).removeClass(r);return e.isFunction(t)?i.each(t):i}});
\ 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";var b={},c=0;a.fn.once=function(d,e){"string"!=typeof d&&(d in b||(b[d]=++c),e||(e=d),d=b[d]);var f="jquery-once-"+d,g=this.filter(function(){return a(this).data(f)!==!0}).data(f,!0);return a.isFunction(e)?g.each(e):g},a.fn.removeOnce=function(b,c){var d="jquery-once-"+b,e=this.filter(function(){return a(this).data(d)===!0}).removeData(d);return a.isFunction(c)?e.each(c):e}});
\ No newline at end of file |