Skip to content

Instantly share code, notes, and snippets.

@floydpink
Created March 8, 2013 21:54
Show Gist options
  • Save floydpink/5120206 to your computer and use it in GitHub Desktop.
Save floydpink/5120206 to your computer and use it in GitHub Desktop.
//This code gives this error:
// Uncaught Error: assertion failed: Ember.Object.create no longer supports defining methods that call _super.
var App = Ember.Application.create({
init:function(){
this._super.deferReadiness();
}
});
@wagenet
Copy link

wagenet commented Mar 8, 2013

It should be like:

init: function() {
  this.deferReadiness();
  this._super();
}

Also see: emberjs/ember.js#2184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment