dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
19 lines (17 loc) • 826 B
JavaScript
define(["dojo/dom", "dojo/dom-style", "dojo/_base/connect", "dijit/registry", "dojox/mvc/at", "dojox/mobile/TransitionEvent", "dojox/mvc/Repeat",
"dojox/mvc/getStateful", "dojox/mvc/Output", "dojo/sniff"],
function(dom, domStyle, connect, registry, at, TransitionEvent, Repeat, getStateful, Output, has){
return {
beforeActivate: function(){
// summary:
// view life cycle beforeActivate()
if(dom.byId("mli1back") && !has("phone")){
domStyle.set(dom.byId("mli1back"), "visibility", "hidden"); // hide the back button in tablet mode
}
if(dom.byId("tab1WrapperA")){
domStyle.set(dom.byId("tab1WrapperA"), "visibility", "visible"); // show the nav view if it being used
domStyle.set(dom.byId("tab1WrapperB"), "visibility", "visible"); // show the nav view if it being used
}
}
};
});