When upgrading to v1.0.0-pre.3, I get the following errors:
Uncaught Error: assertion failed: Ember.Object.create no longer supports defining methods that call _super.
Which it appears that for performance reasons, the original create() functionality was preserved in createWithMixins()
Which is answered fairly clearly here:
https://github.com/emberjs/ember.js/commit/c1c720781c976f69fd4014ea50a1fee652286048
https://github.com/emberjs/ember.js/pull/1623#issuecomment-11699639
Ember.Application.create with mixin and parameters
But once I make that change, I now get this error:
Uncaught Error: assertion failed: Application initialize may only be called once
A search of my codebase and I am only running an App.initialize() once.
(function(root){
require(["config"], function(config){
requirejs.config(config);
require(["App", "domReady!", "ember"], function(App, doc, Ember){
var app_name = config.app_name || "App";
root[app_name] = App = Ember.Application.create(App);
!App.isInitialized && App.initialize();
});
});
})(this);
Any ideas?
I believe you don’t need to call initialize at all with the new version.