forked from knockout/knockout
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace automatic inheritance of all bindingContext properties with n…
…ew $parentContext variable Benefit #1: Can reach custom properties on *all* ancestor contexts, and are not limited to those that haven't been overwritten (e.g., if we had $index, would now be able to reach all ancestor $index values, not just the closest one) Benefit #2: Allows discrimination between properties at the current level and properties at the parent level, which is good because not all custom properties may make sense to inherit.
- Loading branch information
1 parent
8df7869
commit ab8087e
Showing
2 changed files
with
5 additions
and
5 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