diff options
Diffstat (limited to 'jquery.once.js')
-rw-r--r-- | jquery.once.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/jquery.once.js b/jquery.once.js index affaaed..593010e 100644 --- a/jquery.once.js +++ b/jquery.once.js @@ -13,10 +13,7 @@ uuid = 0; $.fn.once = function(id) { var name; - if (!id) { - id = ++uuid; - } - name = "jquery-once-" + id; + name = "jquery-once-" + (id || ++uuid); return this.filter(function() { return $(this).data(name) !== true; }).data(name, true); |