Skip to content

make toArray return a clone in case of an array - #233

Merged
jashkenas merged 2 commits into
jashkenas:masterfrom
chaoflow:master
Jul 6, 2011
Merged

make toArray return a clone in case of an array#233
jashkenas merged 2 commits into
jashkenas:masterfrom
chaoflow:master

Conversation

@chaoflow

Copy link
Copy Markdown
Contributor

In combination with backbone this makes coll.toArray() return an array
instead of just returning coll.models, enabling
coll.remove(coll.toArray()) whithout failing half way through.

test included and passing

chaoflow added 2 commits June 21, 2011 18:31
In combination with backbone this makes coll.toArray() return an array
instead of just returning coll.models, enabling
coll.remove(coll.toArray()) whithout failing half way through.
more comfortable to include underscore with tests in some other project.
@jashkenas

Copy link
Copy Markdown
Owner

Good idea -- thanks for the patch.

jashkenas added a commit that referenced this pull request Jul 6, 2011
make toArray return a clone in case of an array
@jashkenas
jashkenas merged commit 0b52dfb into jashkenas:master Jul 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants