mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Dropped more unused knockoutjs code
This commit is contained in:
parent
b79d9de1a0
commit
1d57a62ddd
14 changed files with 408 additions and 635 deletions
13
vendors/knockout/src/binding/bindingProvider.js
vendored
13
vendors/knockout/src/binding/bindingProvider.js
vendored
|
|
@ -9,8 +9,7 @@
|
|||
'nodeHasBindings': node => {
|
||||
switch (node.nodeType) {
|
||||
case 1: // Element
|
||||
return node.getAttribute(defaultBindingAttributeName) != null
|
||||
|| ko.components['getComponentNameForNode'](node);
|
||||
return node.getAttribute(defaultBindingAttributeName) != null;
|
||||
case 8: // Comment node
|
||||
return ko.virtualElements.hasBindingValue(node);
|
||||
default: return false;
|
||||
|
|
@ -18,15 +17,13 @@
|
|||
},
|
||||
|
||||
'getBindings': function(node, bindingContext) {
|
||||
var bindingsString = this['getBindingsString'](node, bindingContext),
|
||||
parsedBindings = bindingsString ? this['parseBindingsString'](bindingsString, bindingContext, node) : null;
|
||||
return ko.components.addBindingsForCustomElement(parsedBindings, node, bindingContext, /* valueAccessors */ false);
|
||||
var bindingsString = this['getBindingsString'](node, bindingContext);
|
||||
return bindingsString ? this['parseBindingsString'](bindingsString, bindingContext, node) : null;
|
||||
},
|
||||
|
||||
'getBindingAccessors': function(node, bindingContext) {
|
||||
var bindingsString = this['getBindingsString'](node, bindingContext),
|
||||
parsedBindings = bindingsString ? this['parseBindingsString'](bindingsString, bindingContext, node, { 'valueAccessors': true }) : null;
|
||||
return ko.components.addBindingsForCustomElement(parsedBindings, node, bindingContext, /* valueAccessors */ true);
|
||||
var bindingsString = this['getBindingsString'](node, bindingContext);
|
||||
return bindingsString ? this['parseBindingsString'](bindingsString, bindingContext, node, { 'valueAccessors': true }) : null;
|
||||
},
|
||||
|
||||
// The following function is only used internally by this default provider.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue