diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/deprecate.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/deprecate.js b/lib/api/deprecate.js index 95ab93b..7a93a91 100644 --- a/lib/api/deprecate.js +++ b/lib/api/deprecate.js @@ -110,9 +110,7 @@ function deprecateRenamedMethod(book, key, instance, oldName, newName, msg) { msg = msg || ('"' + oldName + '" is deprecated, use "' + newName + '()" instead'); var fn = objectPath.get(instance, newName); - instance[oldName] = deprecateMethod(book, key, function() { - return fn.apply(instance, arguments); - }. msg); + instance[oldName] = deprecateMethod(book, key, fn, msg); } module.exports = { |