Download Latest Version Fix_ readonly accessors.zip (101.8 kB)
Email in envelope

Get an email when there's a new version of slim.js

Home / v3.3.4
Name Modified Size InfoDownloads / Week
Parent folder
Fix_ readonly accessors.tar.gz 2018-08-28 90.3 kB
Fix_ readonly accessors.zip 2018-08-28 101.8 kB
README.md 2018-08-28 374 Bytes
Totals: 3 Items   192.5 kB 0

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.

Source: README.md, updated 2018-08-28