Debian Codegraph @

dojox/app/tests/mediaQuery3ColumnApp/views/main/TestInfo.js

raw symbols SCIP
1 define(["dojo/_base/lang", "dojo/dom-class"],
2 function(lang, domClass){
3
4 return {
5 // view init
6 init: function(){
7 console.log("in init for view with this.name = "+this.name);
8
9 // handle the backButton click
10 this.testheaderBackButton.on("click", lang.hitch(this, function(e){
11 this.app.emit("MQ3ColApp/BackFromTest", e);
12 }));
13
14 // This code will setup the classes for the backButton
15 domClass.add(this.testheaderBackButton.domNode, "showOnSmall hideOnMedium hideOnLarge");
16 },
17
18
19 afterDeactivate: function(){
20 // summary:
21 // view life cycle beforeActivate()
22 //
23 },
24
25 // view destroy, this destroy function can be removed since it is empty
26 destroy: function(){
27 // _WidgetBase.on listener is automatically destroyed when the Widget itself is.
28 }
29 };
30 });