Debian Codegraph @

dojox/mobile/tests/multiSceneApp/app/assistants/main-assistant.js

raw symbols SCIP
1 dojo.require("dojox.mobile.app.SceneAssistant");
2
3 dojo.declare("MainAssistant", dojox.mobile.app.SceneAssistant, {
4
5 setup: function(){
6 console.log("In main assistant setup");
7
8 var appInfoNode = this.controller.query(".appInfoArea")[0];
9
10 appInfoNode.innerHTML =
11 "This app has the following info: \n"
12 + dojo.toJson(dojox.mobile.app.info, true).split("\t").join(" ");
13
14 // Instantiate widgets in the template HTML.
15 this.controller.parse();
16
17 var _this = this;
18 var launcher = dijit.byId("secondSceneLauncher");
19
20 console.log("launcher = " , launcher, " node = ", this.domNode);
21 this.connect(launcher.domNode, "onclick", function(){
22 console.log("launching the second scene");
23
24 _this.controller.stageController.pushScene("second", "Came from Main Scene");
25 });
26 },
27
28 activate: function(data){
29 console.log("In main assistant activate");
30
31 var node = this.controller.query(".inputData")[0];
32 if(data) {
33 node.innerHTML = "Scene got the data: " + data;
34 } else {
35 node.innerHTML = "Scene did not receive data";
36 }
37
38 }
39
40 });