canjs / can-observable-mixin

Define properties on JavaScript classes
https://canjs.com
MIT License
2 stars 1 forks source link

update and updateDeep not working correctly on list-like objects #144

Closed m-mujica closed 5 years ago

m-mujica commented 5 years ago
class MyArray extends mixinMapProps(Array) {}

let arr = new MyArray();
arr.push(1, 2, 3, 4);
assert.equal(arr.length, 4); 

arr.updateDeep([]); // throws an exception
assert.equal(arr.length, 0);