Update wrench.js #59

Merged
aogriffiths merged 1 commit from patch-1 into master 2013-10-15 14:51:41 -07:00

1 commit

Author SHA1 Message Date
Adam Griffiths
e3a696c40f Update wrench.js
Fixes a bug (not sure if has been reported).

`copyDirRecursive` calls itself from the `rmdirRecursive` callback when newDir exists. It should call itself with the original copyDirRecursive arguments, not the callback arguments. 

Also `fun.apply(thisArg, argsArray)` expects argsArray to be an array (see [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply)) but `arguments` is not an array (see [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments))
2013-08-04 19:12:53 +01:00