Skip to content

Instantly share code, notes, and snippets.

@tim-evans
Forked from joegaudet/gist:1508404
Created December 22, 2011 00:58
Show Gist options
  • Save tim-evans/1508429 to your computer and use it in GitHub Desktop.
Save tim-evans/1508429 to your computer and use it in GitHub Desktop.
var B = {
foo: function () {
console.log("Foo B");
}
};
var A = SC.Object.extend(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