Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created February 7, 2014 10:28
Show Gist options
  • Save justinvdm/8860331 to your computer and use it in GitHub Desktop.
Save justinvdm/8860331 to your computer and use it in GitHub Desktop.
diff --git a/lib/utils.js b/lib/utils.js
index 229b16d..9d5b957 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -101,7 +101,7 @@ Extendable.extend = function(Child) {
var Surrogate = function() {
Array.prototype.unshift.call(arguments, this);
- Child.apply(this, arguments);
+ return Child.apply(this, arguments);
};
return inherit(Parent, Surrogate);
@hodgestar
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment