summaryrefslogtreecommitdiffstats
path: root/jquery.once.js
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2013-06-13 14:15:50 -0300
committerRob Loach <robloach@gmail.com>2013-06-13 14:15:50 -0300
commit25dd0423594bcd7ec568906b90aa38a04da0b294 (patch)
treeed138a6d0da48f2492602152c99d5cf23d5a0c71 /jquery.once.js
parentae58c4e0e6833c784706a2b6b46825fef9d85452 (diff)
downloadjquery-once-25dd0423594bcd7ec568906b90aa38a04da0b294.zip
jquery-once-25dd0423594bcd7ec568906b90aa38a04da0b294.tar.gz
jquery-once-25dd0423594bcd7ec568906b90aa38a04da0b294.tar.bz2
Update documentation
Diffstat (limited to 'jquery.once.js')
-rw-r--r--jquery.once.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/jquery.once.js b/jquery.once.js
index 75a074c..f1ad1ba 100644
--- a/jquery.once.js
+++ b/jquery.once.js
@@ -1,6 +1,6 @@
/**
- * jQuery Once Plugin v1.2.1
- * http://plugins.jquery.com/project/once
+ * jQuery Once Plugin v1.2.2
+ * http://plugins.jquery.com/once/
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
@@ -8,7 +8,7 @@
*/
(function (factory) {
- 'use strict';
+ "use strict";
if (typeof exports === 'object') {
factory(require('jquery'));
} else if (typeof define === 'function' && define.amd) {
@@ -17,7 +17,7 @@
factory(jQuery);
}
}(function ($) {
- 'use strict';
+ "use strict";
var cache = {}, uuid = 0;
/**
@@ -44,6 +44,8 @@
* logic as $.each(). Returning true will continue to the next matched
* element in the set, while returning false will entirely break the
* iteration.
+ *
+ * @api public
*/
$.fn.once = function (id, fn) {
if (typeof id !== 'string') {
@@ -78,6 +80,8 @@
* logic as $.each(). Returning true will continue to the next matched
* element in the set, while returning false will entirely break the
* iteration.
+ *
+ * @api public
*/
$.fn.removeOnce = function (id, fn) {
var name = id + '-processed';