Comparing version 1.1.1 to 1.1.2
@@ -25,5 +25,5 @@ 'use strict'; | ||
if (cfg.callthrough) | ||
cached.apply(obj, arguments) | ||
cached.apply(obj, args) | ||
stub.apply(obj, arguments) | ||
stub.apply(obj, args) | ||
@@ -30,0 +30,0 @@ if (!norevert && --cfg.calls === 0) |
{ | ||
"name": "stubs", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Easy method stubber.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -73,2 +73,2 @@ # stubs | ||
If `callthrough` is omitted or `false`, this method is called in place of the original method. If `callthrough` is `true`, this method is called *after* the original method is called as well. | ||
This method is called in place of the original method. If `opts.callthrough` is `true`, this method is called *after* the original method is called as well. |
5438