The Wayback Machine - https://web.archive.org/web/20220325033332/https://github.com/slimjs/slim.js/releases/tag/v3.3.4
Skip to content
Compare
Choose a tag to compare

Fix: readonly accessors

Latest
@eavichay eavichay released this
· 102 commits to master since this release
Compare
Choose a tag to compare

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.