javascript - Backbone router loads all libs again after every routing -
i'm trying create phonegap/cordova application jquery mobile , backbone. after next this seems libs loaded 1 time again , phonegaps "deviceready" event gets fired again, when going default route (in case, "":"register"). normal behaviour? fine loading when trying disable deviceready event document.removeeventlistener after got loaded first time, function still called when going start page. there way suppress behaviour?
it turns out, happens on "" : "something" route! putting in "" , calling route in init fixes problem... javascript absurd.
javascript jquery backbone.js cordova
No comments:
Post a Comment