root / trunk / web / dojo / dojox / mobile / app / SceneAssistant.js @ 13
History | View | Annotate | Download (949 Bytes)
| 1 | 9 | andrej.cim | /*
|
|---|---|---|---|
| 2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
| 3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
| 4 | see: http://dojotoolkit.org/license for details
|
||
| 5 | */
|
||
| 6 | |||
| 7 | |||
| 8 | if(!dojo._hasResource["dojox.mobile.app.SceneAssistant"]){ |
||
| 9 | dojo._hasResource["dojox.mobile.app.SceneAssistant"]=true; |
||
| 10 | dojo.provide("dojox.mobile.app.SceneAssistant");
|
||
| 11 | dojo.experimental("dojox.mobile.app.SceneAssistant");
|
||
| 12 | dojo.declare("dojox.mobile.app.SceneAssistant",null,{constructor:function(){ |
||
| 13 | },setup:function(){ |
||
| 14 | },activate:function(_1){ |
||
| 15 | },deactivate:function(){ |
||
| 16 | },destroy:function(){ |
||
| 17 | var _2=dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode); |
||
| 18 | dojo.forEach(_2,function(_3){
|
||
| 19 | _3.destroyRecursive(); |
||
| 20 | }); |
||
| 21 | this.disconnect();
|
||
| 22 | },connect:function(_4,_5,_6){ |
||
| 23 | if(!this._connects){ |
||
| 24 | this._connects=[];
|
||
| 25 | } |
||
| 26 | this._connects.push(dojo.connect(_4,_5,_6));
|
||
| 27 | },disconnect:function(){ |
||
| 28 | dojo.forEach(this._connects,dojo.disconnect);
|
||
| 29 | this._connects=[];
|
||
| 30 | }}); |
||
| 31 | } |