Skip to content

Commit

Permalink
Update viewstack.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vash15 committed Apr 27, 2015
1 parent f5c8c46 commit 4abb070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/viewstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ var ViewStack = module.exports = Backbone.View.extend({
// popView
// Rimuove l'ultima view dello stack
popView: function popView(poppedView, options){
if (!(poppedView instanceof Backbone.View)) {
if (!(poppedView instanceof Backbone.View) && typeof options === "undefined" ) {
options = poppedView;
poppedView = undefined;
}
Expand Down

0 comments on commit 4abb070

Please sign in to comment.