Closed DracoBlue closed 11 years ago
Ok, then we need a mechanism to tell jsb where the file is located.
Maybe change the signature of registerHandler to function(name, url)
(with fallback to the "old" way) and have the behvaviour export the behaviour object as a module?
Naming to be decided, but to register the lazy loaders:
jsb.registerTHINGS({
"game_session": "static/js/GameSession.js"
});
jsb.whenFired('JSB::HANDLER_REGISTERED', {'name': "game_session"}, function()
{
});
fixed with ceac2bb7eb0bddbee020ee33c698619b414692e9 and requirejs
it would be cool to load the behaviours on demand, as soon as a handler is triggered.