joint
joint copied to clipboard
dia.Cell: stop merging arrays attributes inside of the constructor
var MyCell = joint.dia.Cell.extend({ attribute: ['value'] });
var myCell = new MyCell({ attribute: [] });
// Previously
console.log(myCell.get('attribute')) // output `['value']`
// After this change
console.log(myCell.get('attribute')) // output `[]`
- [ ] make it optional to easily maintain backwards compatibility
- [ ] define the customizer function on prototype/constructor to avoid function creation when constructing a cell