Debian Codegraph @

dojox/app/tests/scrollableTestApp2/views/ListItem-domButtons.js

raw symbols SCIP
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 = []; // events connect result
5
6
7 return {
8 // repeat view init
9 init: function(){
10 },
11
12
13 beforeActivate: function(){
14 // summary:
15 // view life cycle beforeActivate()
16 if(dom.byId("mli1back") && !has("phone")){
17 domStyle.set(dom.byId("mli1back"), "visibility", "hidden"); // hide the back button in tablet mode
18 }
19 if(dom.byId("tab1WrapperA")){
20 domStyle.set(dom.byId("tab1WrapperA"), "visibility", "visible"); // show the nav view if it being used
21 domStyle.set(dom.byId("tab1WrapperB"), "visibility", "visible"); // show the nav view if it being used
22 }
23 },
24
25
26 // view destroy
27 destroy: function(){
28 var connectResult = _connectResults.pop();
29 while(connectResult){
30 connect.disconnect(connectResult);
31 connectResult = _connectResults.pop();
32 }
33 }
34 };
35 });