canjs v6.2.1 Release Notes
Release Date: 2019-10-23 // over 4 years ago-
๐ canjs/canjs v6.2.1 Release Notes
๐ can-observable-array
๐ Make sure
for...in
works with can-observable-array instances๐ This patch release fixes an issue where
ownKeys
returned an array with duplicated keys causing the following code to throw an exceptionimport { ObservableArray } from "//unpkg.com/can@6/core.mjs";class List extends ObservableArray {}let list = new List();for (var name in list) { console.log(name); }
๐ can-observable-mixin
- ๐ can-observable-mixin v1.0.4 - Get update and updateDeep to work on list-like objects
๐ This patch release fixes.update
andupdateDeep
behavior when called on list-like objects.
โก๏ธ The following code was throwing an exception due to both methods always calling
canReflect.updateMap
andcanReflect.updateDeepMap
under the hood even if the caller was an array.class MyArray extends mixinMapProps(Array) {}let arr = new MyArray();arr.push(1, 2, 3, 4);assert.equal(arr.length, 4);arr.updateDeep([]); // throws an exceptionassert.equal(arr.length, 0);
- ๐ can-observable-mixin v1.0.4 - Get update and updateDeep to work on list-like objects