Skip to content

Commit

Permalink
Fix an issue when viewstack tries to pop a view already popped
Browse files Browse the repository at this point in the history
  • Loading branch information
SonoIo committed Mar 6, 2018
1 parent c044bad commit 98b55b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/viewstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
return poppedView;

function runPopHook(destroy) {
if (!poppedView) return;
if ( poppedView.onPop )
poppedView.onPop();
poppedView.trigger('pop');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backbone.viewstack",
"version": "2.3.4",
"version": "2.3.5",
"description": "View stack for Backbone",
"main": "lib/viewstack.js",
"repository": {
Expand Down

0 comments on commit 98b55b7

Please sign in to comment.