I'm currently dealing with a class:
<ul class="topStatsWrapper">
<li><a href="">link</a></li>
<li><a href="">link</a></li>
<li><a href="">link</a></li>
</ul>
This particular ul class is set to update every 3 seconds. I'm looking for a solution on how to pause this automatic update when the mouse hovers over the .topStatsWrapper
class, and resume it once the mouse leaves. Any ideas would be greatly appreciated. Thanks!
initialize: function() {
window.setTimeout( _.bind( this.updateStats, this, true ), 3 * 1000);
},
If you need to view the full code, you can access it here: http://pastebin.com/nGnfaeN5