summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorThéodore Biadala <theodore@biadala.net>2014-10-15 03:49:30 +0200
committerThéodore Biadala <theodore@biadala.net>2014-10-15 03:49:30 +0200
commit6c3c03d6c1b974c03f1276e65fc3f2bba5e4393e (patch)
treef97bc5195dcf938afcd6195d426d64ac90479f41 /example
parent57bf227077907c9358cc4e97f679585140bc91c6 (diff)
downloadjquery-once-6c3c03d6c1b974c03f1276e65fc3f2bba5e4393e.zip
jquery-once-6c3c03d6c1b974c03f1276e65fc3f2bba5e4393e.tar.gz
jquery-once-6c3c03d6c1b974c03f1276e65fc3f2bba5e4393e.tar.bz2
Remove ability to call once() without a parameter
Diffstat (limited to 'example')
-rw-r--r--example/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/index.html b/example/index.html
index 2279967..a002fb4 100644
--- a/example/index.html
+++ b/example/index.html
@@ -15,10 +15,10 @@
$('p').once('changecolor').css('color', 'red');
// Now change the background color.
- $('p').once().css('background-color', 'black');
+ $('p').once('changebackground').css('background-color', 'black');
// Change it again.
- $('p').once().css('background-color', 'yellow');
+ $('p').once('changebackground').css('background-color', 'yellow');
</script>
</body>
</html>