summaryrefslogtreecommitdiffstats
path: root/example/index.html
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2014-10-08 14:55:22 -0400
committerRob Loach <robloach@gmail.com>2014-10-08 14:55:22 -0400
commita10ba8f605279314a3bac2f5c61c7b6fea98ab88 (patch)
tree37460e36854cb91d457853d4fea6c9e55713bc0a /example/index.html
parent4c862ae108fc69e17495f4169400ba9f41439228 (diff)
downloadjquery-once-a10ba8f605279314a3bac2f5c61c7b6fea98ab88.zip
jquery-once-a10ba8f605279314a3bac2f5c61c7b6fea98ab88.tar.gz
jquery-once-a10ba8f605279314a3bac2f5c61c7b6fea98ab88.tar.bz2
Remove unneeded cache variable
Diffstat (limited to 'example/index.html')
-rw-r--r--example/index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/index.html b/example/index.html
index 4b73760..f9b1e6a 100644
--- a/example/index.html
+++ b/example/index.html
@@ -13,6 +13,12 @@
// Attempt to change the color again.
$('p').once('changecolor').css('color', 'red');
+
+ // Now change the background color.
+ $('p').once().css('background-color', 'black');
+
+ // Change it again.
+ $('p').once().css('background-color', 'yellow');
</script>
</body>
</html>