Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor bug fixes: - Tags and converters with 'depends' as a function: the function now receives the tag as 'this' pointer and the contextual data object as parameter - Fix for syntax error bug for debugMode(true) with {{else}} blocks https://stackoverflow.com/questions/47065521/migrating-jsrender-to-jsviews-else-issue #395 - Fix for bug in advanced nested $.render() call scenarios (when useViews advanced setting is false): BorisMoore/jsrender#333 - linkedCtxParam bugs: - If linkedCtxParam="foo", and onUpdate is not false, two-way binding on ~foo continues to work correctly after an update - If linkedCtxParam="foo", 2 way binding now works correctly for properties of ~foo (~foo.bar...) - Fix for validation bug for 'preventInvalidData'. Now uses onBeforeUpdateValue rather than onBeforeChange Feature improvements and changes for custom tags: - Very minor breaking changes: - The (undocumented) onBeforeBind event has been removed - Signature change for tag.cvtArgs(): does not accept a converter parameter - 'lateRender' is now available as a tag option (overridden by inline lateRender=false) - 'trigger' is now available as a tag option (overridden by inline trigger=...) - 'linkedElement' and 'linkedCtxParam' can now be set in init() - Calling tag.updateValue() now updates both external bindings and internal content dependencies (which it updates by calling tag.setValue()...) - If a tag has no args, and argDefault is not set to false, then the tagCtx.args[] will be [#data] (where #data is the current data context). Note that the render() method will receive the current data as parameter. (See https://www.jsviews.com/#tagsapi@argdefault) Unit tests: - Several additional unit tests Documentation: - JsViews custom tag controls topic has been augmented. (More content to be added in next updates) See: http://www.jsviews.com/#jsvtagcontrols
- Loading branch information