Skip to content

Commit

Permalink
FIX: Crash when leaving Favorites view
Browse files Browse the repository at this point in the history
- Updated the onDestroy function to handle uncaught exceptions.  
- Leaving favorite page would generate exception error causing the app to hang indefinitely.
  • Loading branch information
captainyarr committed Mar 10, 2016
1 parent 668905a commit a87153c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/lib/views/browser/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
},

onDestroy: function () {
this.ui.coverImage.off('load');
try {
this.ui.coverImage.off('load');
} catch (err) {
win.error(err);
}
},

hoverItem: function (e) {
Expand Down

0 comments on commit a87153c

Please sign in to comment.