summaryrefslogtreecommitdiffstats
path: root/example/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'example/index.html')
-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>