If I have the following:
var ObjectA = Ember.Object.extend({
init: function() {
this._super();
document.write('init object A<br>');
}
});
var ObjectB = ObjectA.extend({
init: function() {
this._super();
document.write('init object B<br>');
}
});
var ObjectC = ObjectB.extend({
init: function() {
this._super();
document.write('init object C<br>');
}
});
var myobj = ObjectC.create();
How do I make it so that ObjectC’s init() method does not call ObjectB’s init method?
This was answered by raycohen in #emberjs. Of course the answer was simple, and simply involved calling ObjectA’s prototype:
Updated fiddle: http://jsfiddle.net/QYKb3/1/