Skip to content

Fix: readonly accessors

Latest
Compare
Choose a tag to compare
@eavichay eavichay released this 28 Aug 12:32
· 106 commits to master since this release

The es5 version declares "use strict" and causes the browser to throw error when writing to read-only properties. Now added functionality to test whether the property has a descriptor with a writable === true before attempting to update the property.

The main use-case is working with SVG elements, though it might occur in any bound object.

See #61 for reference.