diff options
author | Rob Loach <robloach@gmail.com> | 2014-10-08 14:55:22 -0400 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2014-10-08 14:55:22 -0400 |
commit | a10ba8f605279314a3bac2f5c61c7b6fea98ab88 (patch) | |
tree | 37460e36854cb91d457853d4fea6c9e55713bc0a /example/index.html | |
parent | 4c862ae108fc69e17495f4169400ba9f41439228 (diff) | |
download | jquery-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.html | 6 |
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> |