diff --git a/lib/viewstack.js b/lib/viewstack.js index b195d06..88c77a9 100644 --- a/lib/viewstack.js +++ b/lib/viewstack.js @@ -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; }