Skip to content

Makes deep assigns and updates work with _legacyAttrBehavior

Choose a tag to compare

@matthewp matthewp released this 14 Aug 16:05
· 133 commits to master since this release

Makes deep assigns and updates work with _legacyAttrBehavior

When using _legacyAttrBehavior: true to enable the legacy attr
behavior you still want to interop with other map types. For this to
work:

map.attr({
  prop: new DefineMap()
})

This works with both assign and update forms of attr().