Last active
September 16, 2015 18:12
-
-
Save shaina7837/ea4fdf3c0186ec4cb177 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var count = 0; | |
setInterval(function(){ | |
var previousCount = count; | |
count = '<%= j @msgs.to_s %>'; | |
if(count > previousCount) | |
{alert(count); } | |
}, | |
1000); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment