| 1 | define([], function(){ |
| 2 | |
| 3 | var app = null; |
| 4 | |
| 5 | return { |
| 6 | init: function(){ |
| 7 | app = this.app; |
| 8 | }, |
| 9 | |
| 10 | beforeActivate: function(){ |
| 11 | if(app){ |
| 12 | app.stopTransition = false; |
| 13 | } |
| 14 | //console.log("configuration/ScrollableListSelection beforeActivate called this.app.selected_configuration_item=",this.app.selected_configuration_item); |
| 15 | }, |
| 16 | |
| 17 | afterActivate: function(){ |
| 18 | //console.log("configuration/ScrollableListSelection afterActivate called this.app.selected_configuration_item=",this.app.selected_configuration_item); |
| 19 | //console.log("setting configurewrapper visible 1"); |
| 20 | //domStyle.set(dom.byId("configurewrapper"), "visibility", "visible"); // show the items list |
| 21 | }, |
| 22 | |
| 23 | beforeDeactivate: function(){ |
| 24 | //console.log("configuration/ScrollableListSelection beforeDeactivate called this.app.selected_configuration_item=",this.app.selected_configuration_item); |
| 25 | }, |
| 26 | |
| 27 | afterDeactivate: function(){ |
| 28 | //console.log("configuration/ScrollableListSelection afterDeactivate called this.app.selected_configuration_item=",this.app.selected_configuration_item); |
| 29 | //console.log("setting configurewrapper hidden"); |
| 30 | //domStyle.set(dom.byId("configurewrapper"), "visibility", "hidden"); // hide the items list |
| 31 | }, |
| 32 | |
| 33 | // view destroy, this destroy function can be removed since it is empty |
| 34 | destroy: function(){ |
| 35 | // _WidgetBase.on listener is automatically destroyed when the Widget itself is. |
| 36 | } |
| 37 | } |
| 38 | }); |