Permalink
Browse files

Return the original function value for static methods, too

  • Loading branch information...
feross committed Nov 8, 2013
1 parent 28864fa commit 02ffe623f536bf30b3777cf6ecb10986b7bf61f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -16,7 +16,7 @@ module.exports = function (constructor) {
constructor[methodName] = function () {
var args = Array.prototype.slice.call(arguments)
console.log('Called: ' + methodName + '(' + args + ')')
- originalMethod.apply(null, args)
+ return originalMethod.apply(null, args)
}
})

0 comments on commit 02ffe62

Please sign in to comment.