forked from BorisMoore/jsviews
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Improved support for data-linked element expressions using tags e.g. <div data-link="{if foo tmpl='...'}"> This now supports one or more {else} expressions <div data-link="{if a tmpl='...'}{else b tmpl='...'}"> It also supports linking tag expressions to different targets, such as title{... css-color{... class{... etc. e.g. data-link="title{for items tmpl='...'}{else tmpl='...'}" See BorisMoore#293 http://stackoverflow.com/a/28060034/1054484 - Tag inheritance now supports multi-level inheritance with easy invocation of the base class implementation using this.base(...) or this.baseApply(arguments): e.g. { baseTag: "for", onAfterLink: function() { ... this.baseApply(arguments); } ... } Similarly for callbacks declared declaratively on tags: e.g. {{for items onAfterLink=~myHelper onUpdate=~dbg}}... The above uses the built in ~dbg helper, and a user-provided helper, such as: function myHelper() { ... this.baseApply(arguments); } - Many new unit tests added for the above new features. - Some small additional bug fixes.
- Loading branch information
1 parent
3c83204
commit 074f8b2
Showing
20 changed files
with
795 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.