| 1 |
define(["dojo/dom", "dojo/dom-style", "dojo/_base/connect", "dijit/registry", "dojox/mvc/at", "dojox/mobile/TransitionEvent", "dojox/mvc/Repeat", |
| 2 |
"dojox/mvc/getStateful", "dojox/mvc/Output", "dojo/sniff"], |
| 3 |
function(dom, domStyle, connect, registry, at, TransitionEvent, Repeat, getStateful, Output, has){ |
| 4 |
var _connectResults = []; |
| 5 |
|
| 6 |
|
| 7 |
return { |
| 8 |
|
| 9 |
init: function(){ |
| 10 |
}, |
| 11 |
|
| 12 |
|
| 13 |
beforeActivate: function(){ |
| 14 |
|
| 15 |
|
| 16 |
if(dom.byId("mli1back") && !has("phone")){ |
| 17 |
domStyle.set(dom.byId("mli1back"), "visibility", "hidden"); |
| 18 |
} |
| 19 |
if(dom.byId("tab1WrapperA")){ |
| 20 |
domStyle.set(dom.byId("tab1WrapperA"), "visibility", "visible"); |
| 21 |
domStyle.set(dom.byId("tab1WrapperB"), "visibility", "visible"); |
| 22 |
} |
| 23 |
}, |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
destroy: function(){ |
| 28 |
var connectResult = _connectResults.pop(); |
| 29 |
while(connectResult){ |
| 30 |
connect.disconnect(connectResult); |
| 31 |
connectResult = _connectResults.pop(); |
| 32 |
} |
| 33 |
} |
| 34 |
}; |
| 35 |
}); |