This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
Releases: DataDink/mvw
Releases · DataDink/mvw
1.1.0
- Preformance Pass
- Increased performance at the expense of a bump to caching on elements
- Switched some RegExp to quicker, manual parsing
- Support for parameter selectors
- Selectors can now have parameter statements to define values passed to handlers
- Example:
<input name="field" data-onclick="member1.member2(name, value, value.length)">
- Added configurability
- attributePrefix: ('data-') The prefix used to identify mapping attributes
- attributeDelimiter: ('-') The character used for separating properties in an attribute name
- memberDelimiter: ('.') The character used for separating properties in a selector
- selectorDelimiter: ('(') The opening character for parameter queries
- parameterDelimiter: (',') The character used for separating parameter queries
- selectorTerminator: (')') The character used marking the end of parameter queries
- Example:
document.body.map(model, {attributePrefix: 'map-'})
- Breaking changes to ObjectQuery
- Renamed to MemberQuery
- Now creates a compiled selector that can be re-evaluated (vs single evaluation)
- Breaking change to HTMLTemplateElement.prototype.template
- Reading the template in js now returns the data rather than a content clone.
1.0.1
Version Notes:
- 1.0.1
- Improved naming
- HTMLElement.prototype.classes -> Element.prototype.class
- Changed to match the non-plural name change of settings to attribute
- Less likely to become a future conflict (see (Element.prototype.className)[https://developer.mozilla.org/en-US/docs/Web/API/Element/className])
- HTMLElement.prototype.settings -> Element.prototype.attribute
- Changed to better reflect the extensions purpose.
- HTMLElement.prototype.classes -> Element.prototype.class
- Improved naming
Note: This has breaking changes from 1.0.0