Skip to content

Instantly share code, notes, and snippets.

@workmanw
Forked from joegaudet/gist:1511396
Created December 22, 2011 19:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save workmanw/1511429 to your computer and use it in GitHub Desktop.
Save workmanw/1511429 to your computer and use it in GitHub Desktop.
var B = {
foo: function (original) {
console.log("Foo B");
original();
}.enhance()
};
var C = {
foo: function () {
console.log("Foo C");
}
};
var A = SC.Object.extend(C, B, {
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