Sha256: c591da3b16e70d8457e7bbb5dde03966082796da3a7af6838806ca5d126eb512
Contents?: true
Size: 489 Bytes
Versions: 85
Compression:
Stored size: 489 Bytes
Contents
pageflow.polling = { togglePolling: function(enabled) { if (enabled) { this.startPolling(); } else { this.stopPolling(); } }, startPolling: function() { if (!this.pollingInterval) { this.pollingInterval = setInterval(_.bind(function() { this.fetch(); }, this), 1000); } }, stopPolling: function() { if (this.pollingInterval) { clearInterval(this.pollingInterval); this.pollingInterval = null; } } };
Version data entries
85 entries across 85 versions & 1 rubygems