Update wrench.js #59

Merged
aogriffiths merged 1 commit from patch-1 into master 2013-10-15 14:51:41 -07:00
aogriffiths commented 2013-08-04 11:18:23 -07:00 (Migrated from github.com)

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) but arguments is not an array (see here)

Very similar to pull request 56 (I wrote my code before I noticed danielholmes did a similar fix).

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)) Very similar to [pull request 56](https://github.com/ryanmcgrath/wrench-js/pull/56) (I wrote my code before I noticed danielholmes did a similar fix).
ryanmcgrath commented 2013-10-15 14:52:01 -07:00 (Migrated from github.com)

Heeeey so yeah this looks fine let's merge this sure.

Only ~2 months late on my part. You rock.

Heeeey so yeah this looks fine let's merge this sure. Only ~2 months late on my part. You rock.
This repository is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/wrench-js#59
No description provided.