summaryrefslogtreecommitdiffstats
path: root/jquery.once.js
diff options
context:
space:
mode:
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';