joint icon indicating copy to clipboard operation
joint copied to clipboard

dia.Cell: stop merging arrays attributes inside of the constructor

Open kumilingus opened this issue 8 years ago • 0 comments

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

kumilingus avatar Jul 03 '17 08:07 kumilingus