Eliminate all console errors during test run

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-05-18 10:42:20 -07:00
parent f6c62e4822
commit 3cfac58d78
5 changed files with 38 additions and 16 deletions

View file

@ -9,8 +9,10 @@
initialize: function() {
this.$el.hide();
var renderIntervalHandle = setInterval(this.update.bind(this), 5000);
extension.windows.onClosed(function () { clearInterval(renderIntervalHandle); });
this.renderIntervalHandle = setInterval(this.update.bind(this), 5000);
extension.windows.onClosed(function () {
clearInterval(this.renderIntervalHandle);
}.bind(this));
setTimeout(this.finishConnectingGracePeriod.bind(this), 5000);