dojo aspect not defined, dont understand why
问题 I want to update from dojo 1.7 to 1.8.3 so I have to replace the dojo.connect command. switch: < div id="universalPushSwitch" data-dojo-type="dojox.mobile.Switch" style="float:right" class="mblSwRoundShape1"></div> Now I have: dojo.require("dijit/registry"); dojo.require("dojo/ready"); dojo.require("dojox/mobile/ListItem"); dojo.require("dojo/aspect"); dojo.ready(function(){ dojo.aspect.after(dijit.registry.byId("universalPushSwitch"), "onStateChanged", function(newState){ alert(newState); }