Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Update wrench.js #59

Merged
merged 1 commit into from
Oct 15, 2013
Merged

Update wrench.js #59

merged 1 commit into from
Oct 15, 2013

Conversation

aogriffiths
Copy link
Contributor

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))
ryanmcgrath pushed a commit that referenced this pull request Oct 15, 2013
@ryanmcgrath ryanmcgrath merged commit f607440 into ryanmcgrath:master Oct 15, 2013
@ryanmcgrath
Copy link
Owner

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants