Debian Codegraph @

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

raw symbols SCIP
1 dojo.require("dojox.mobile.app.SceneAssistant");
2
3 dojo.declare("ThirdAssistant", dojox.mobile.app.SceneAssistant, {
4
5 setup: function(){
6 console.log("In third assistant setup");
7
8 // Instantiate widgets in the template HTML.
9 this.controller.parse();
10
11 var _this = this;
12 this.connect(dijit.byId("btn3"), "onClick", function(){
13 _this.controller.stageController.popScenesTo("main", "From Third Scene");
14 });
15 this.connect(dijit.byId("btn4"), "onClick", function(){
16 _this.controller.stageController.popScene("From Third Scene");
17 });
18 },
19
20 activate: function(data){
21 console.log("In third assistant activate");
22 var node = this.controller.query(".inputData")[0];
23 if(data) {
24 node.innerHTML = "Scene got the data: " + data;
25 } else {
26 node.innerHTML = "Scene did not receive data";
27 }
28
29 }
30
31 });