Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created October 13, 2010 21:47
Show Gist options
  • Save thejefflarson/624979 to your computer and use it in GitHub Desktop.
Save thejefflarson/624979 to your computer and use it in GitHub Desktop.
var A = Backbone.Model.extend({
constructor: function(){
console.log('hello');
/* init */
}
});
var B = A.extend({
constructor : function(){
A.call(this);
this.init();
},
init : function(){
console.log("don't want this in called in C");
},
doWant : function(){
console.log('hello');
}
});
var C = B.extend({
constructor : function(){
A.call(this);
this.doWant();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment