mypackage_wrt/WRTKit/UI/View.js
changeset 51 abeee2a2e01b
parent 42 20be4dd42b12
equal deleted inserted replaced
50:29d06ba03163 51:abeee2a2e01b
   127 // Default back button handler takes us to previous view
   127 // Default back button handler takes us to previous view
   128 // if one is set
   128 // if one is set
   129 View.prototype.goBack = function()  {
   129 View.prototype.goBack = function()  {
   130 	if ( this.previousView != null ) {
   130 	if ( this.previousView != null ) {
   131 		// transition looks funky
   131 		// transition looks funky
   132 		if (window.widget) {
   132 		if (window.widget && istransitionon) {
   133 			widget.prepareForTransition("fade");
   133 			widget.prepareForTransition("fade");
   134 		}
   134 		}
   135 		this.previousView.show();
   135 		this.previousView.show();
   136 		if (window.widget) {
   136 		if (window.widget && istransitionon) {
   137 			widget.performTransition();
   137 			widget.performTransition();
   138 		}
   138 		}
   139 	}
   139 	}
   140 }
   140 }
   141 
   141