varvet / serenade.js

Client side MVC framework
http://serenadejs.org
Other
524 stars 27 forks source link

Collection.concat() misbehaves #62

Closed KirillGrishin closed 12 years ago

KirillGrishin commented 12 years ago

I think collection's concat() method is not operating as it should:

collection12 = new Serenade.Collection([1,2]) collection3 = new Serenade.Collection([3]) console.log(collection12.concat(collection3));

The result of the above is [1, 2, [3]] when the expected result is [1, 2, 3]

jnicklas commented 12 years ago

Yes, I just verified this. It is indeed a bug. It works as expected with arrays.