Skip to content

Commit

Permalink
Widgets: Added an error handler in the setRefresh method
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi Kohn committed Feb 2, 2016
1 parent cbf84f4 commit 7482a36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/js/widgets/instance.js
Expand Up @@ -166,7 +166,12 @@ define([
clearInterval(this._refreshInterval);
}
else {
this.widgetModel.refresh();
try {
this.widgetModel.refresh();
}
catch (e) {
return this.error();
}
}

if (this.widgetModel.refreshInterval) {
Expand Down

0 comments on commit 7482a36

Please sign in to comment.