File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ var ViewStack = module.exports = Backbone.View.extend({
4848 // Aggiunge una view all'applicazione con z-Index più alto
4949 pushView : function pushView ( newView , options ) {
5050 options = _ . defaults ( options || {
51- deactivateCurrentView : true
51+ deactivateCurrentView : true ,
52+ render : true
5253 } ) ;
5354
5455 // Controllo se è la stessa view che sto cercando di pushare
@@ -83,7 +84,8 @@ var ViewStack = module.exports = Backbone.View.extend({
8384 // setto la view Corrente
8485 this . _current = newView ;
8586 //
86- newView . render ( ) ;
87+ if ( options . render )
88+ newView . render ( ) ;
8789 }
8890
8991 } else {
@@ -105,7 +107,8 @@ var ViewStack = module.exports = Backbone.View.extend({
105107 // setto la view Corrente
106108 this . _current = newView ;
107109 //
108- newView . render ( ) ;
110+ if ( options . render )
111+ newView . render ( ) ;
109112
110113 if ( this . _current && this . _current . onActivate )
111114 this . _current . onActivate ( true ) ;
You can’t perform that action at this time.
0 commit comments