Debian Codegraph @

dojox/app/tests/longListTestApp/views/LongList3.js

raw symbols SCIP
1 define(["dojo/dom", "dojo/dom-style", "dojo/_base/connect","dijit/registry"],
2 function(dom, domStyle, connect, registry){
3
4 var _connectResults = []; // events connect result
5 var list = null;
6 var listId = 'list3';
7 var app = null;
8 return {
9 init: function(){
10 app = this.app;
11 },
12
13
14 beforeActivate: function(){
15 // summary:
16 // view life cycle beforeActivate()
17 // description:
18 // beforeActivate will save the list is app and set the store on the list
19 app.list3 = registry.byId(listId);
20 list = app.list3;
21 if(!list.store){
22 list.setStore(app.stores.longlistStore.store);
23 }
24
25 if(registry.byId("heading1")){
26 registry.byId("heading1").labelDivNode.innerHTML = "Long List Three";
27 }
28 if(dom.byId("tab1WrapperA")){
29 domStyle.set(dom.byId("tab1WrapperA"), "visibility", "visible"); // show the nav view if it being used
30 domStyle.set(dom.byId("tab1WrapperB"), "visibility", "visible"); // show the nav view if it being used
31 }
32 },
33
34 destroy: function(){
35 var connectResult = _connectResults.pop();
36 while(connectResult){
37 connect.disconnect(connectResult);
38 connectResult = _connectResults.pop();
39 }
40 }
41 };
42 });