Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created December 22, 2011 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joegaudet/1511396 to your computer and use it in GitHub Desktop.
Save joegaudet/1511396 to your computer and use it in GitHub Desktop.
var B = {
foo: function () {
console.log("Foo B");
}
};
var C = {
foo: function () {
console.log("Foo C");
}
};
var A = SC.Object.extend(B, C, {
foo: function (original) {
console.log("Foo A");
original();
}.enhance()
});
A.create().foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment