clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.45k stars 841 forks source link

fix(mvc.Dom): allow properties to be passed to attr() method #2497

Closed kumilingus closed 3 months ago

kumilingus commented 3 months ago

Description

Allow passing properties to the attr() method of mvc.$ object for backwards compatibility.

mvc.$(el).attr({ disabled: true }); // sets property `disabled` to `true`