//>>built
define("demos/mobileGallery/src/icons",["./structure","dojo/on","dojo/_base/connect","dijit/registry","dojox/mobile/common","dojox/mobile/IconContainer"],function(_1,on,_2,_3,dm){var _4=[];return {init:function(){_3.byId("icons-moveTo").on("afterTransitionIn",function(){_1.navRecords.push({from:"iconsMain",to:"icons-moveTo",navTitle:"Back"});});_2.connect(_3.byId("urlIcon"),"iconClicked",function(){if(!_3.byId("icons-rul")){dm.currentView=_3.byId("iconsMain");}});_2.subscribe("/dojox/mobile/afterTransitionIn",function(_5,_6){if(_6==="icons-url"){_1.navRecords.push({from:"iconsMain",to:"icons-url",navTitle:"Back"});}});_2.subscribe("onAfterDemoViewTransitionIn",function(id){if(id=="icons"){var _7=_1.navRecords;for(var i=0;i<_4.length;++i){_7.push(_4[i]);}}});on(_3.byId("icons"),"beforeTransitionOut",function(){var _8=_1.navRecords;_4=[];for(var i=0;i<_8.length;++i){var _9=_8[i];if(_9.from=="navigation"||_9.to=="source"){continue;}_4.push(_9);}});}};});