diff options
Diffstat (limited to 'jquery.once.min.js')
-rw-r--r-- | jquery.once.min.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jquery.once.min.js b/jquery.once.min.js new file mode 100644 index 0000000..47276e1 --- /dev/null +++ b/jquery.once.min.js @@ -0,0 +1,4 @@ +/*! jquery-once - v1.2.3 - 6/13/2013 - http://github.com/robloach/jquery-once + * (c) 2013 Rob Loach (http://robloach.net) + * 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 |