looks like as of right now the migrator just parses the JS for any declaration of the global namespace declared and removes it.
if it could change the global declaration to its correct instance call.
ie:
MyApp.ApplicationController = Ember.ObjectController.extend({
updateCurrentPath: (function() {
MyApp.set("currentPath", this.get("currentPath"));
}).observes("currentPath")
});
should get changed to :
ApplicationController = Ember.ObjectController.extend({
updateCurrentPath: (function() {
this.container.lookup('application:main').set("currentPath", this.get("currentPath"));
}).observes("currentPath")
});
looks like as of right now the migrator just parses the JS for any declaration of the global namespace declared and removes it.
if it could change the global declaration to its correct instance call.
ie:
should get changed to :