ember.js - how do I use ember and requirejs together -
i using require.js lazy loading files. added code in ember.route setup method. it's works fine me unto ember v1.4. ember 1.5, it's not.
here code:
app.baseroute = ember.route.extend({ setup : function(context) { require(_rp, function() { //..... this._super(context); }, function(error){ //..... }); } });
probably suffering this problem.
there blog entry here, describing problem in ever-present _super (breaking bugfix) section:
prior versions of ember.js used super mechanism un-safe mixins. if more 1 _super called given function name , there no terminating function, infinite loop occur. see #3523 further discussion.
the solution released in 1.5 fixes behavior (see #3683), breaks edge-case of using _super out of line. instance:
doit: function(){ ember.run.once(this, this._super); }
is no longer supported use of _super. see jsbin live example. if change impacts you, please comment on #4632.
Comments
Post a Comment