mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-01 18:08:49 +03:00
KnockoutJS scramble createChildContext
This commit is contained in:
parent
47cd902369
commit
4ee00d30ae
4 changed files with 5 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ function makeWithIfBinding(bindingKey, isWith, isNot) {
|
|||
contextOptions['dataDependency'] = ko.dependencyDetection.computed();
|
||||
|
||||
childContext = isWith
|
||||
? bindingContext['createChildContext'](typeof value == "function" ? value : valueAccessor, contextOptions)
|
||||
? bindingContext.createChildContext(typeof value == "function" ? value : valueAccessor, contextOptions)
|
||||
: (ko.dependencyDetection.getDependenciesCount()
|
||||
? bindingContext['extend'](null, contextOptions)
|
||||
: bindingContext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue