- unit tests for Observer:
- unobserve()
- ensurePath()
- ensurePaths()
- Multiple observers
- unit test for sd-model:
- should only lock update if it has no filters
- functional test for sd-model in validation.js:
- should remember and restore selection position
when it has filters
- functional test for Observer.ensurePaths():
- should allow setting a nested scope object to {}
- move ensurePath() to Observer.js
- add Observer.ensurePaths(), which deals with the situation
when a scope object with nested values is given a new value
with incomplete nested structure. e.g. this.val = {}
- fix Directive argument regex
- sd-model: no longer locks during set() so filters work on
input fields
- sd-repeat: handles undefined update, also fix transition
- utils.attr now takes additional `noRemove` argument
- ViewModel.$emit now also triggers event on itself
- add functional test case for sd-on expression handlers
- invalid inline expressions: the error will be captured and warning thrown
- add unit test case for invalid inline expressions
- utils.warn() now always gets thrown by default
- add `silent` config option to suppress warnings
A method that access an attribute on a node, removes that attribute
and returns the value. Makes code a bit shorter and reduces the need to
explicitly remove attributes.
merge utils.convertPartials & utils.convertComponents into one function
so it's cleaner in both main.js and compiler.js. Also removed some redundancy
for processing options.template.