mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Clone 3.5.1 from github
This commit is contained in:
parent
5d281486d0
commit
091c4ec811
65 changed files with 6957 additions and 7 deletions
11
vendors/knockout/src/binding/defaultBindings/text.js
vendored
Executable file
11
vendors/knockout/src/binding/defaultBindings/text.js
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
ko.bindingHandlers['text'] = {
|
||||
'init': function() {
|
||||
// Prevent binding on the dynamically-injected text node (as developers are unlikely to expect that, and it has security implications).
|
||||
// It should also make things faster, as we no longer have to consider whether the text node might be bindable.
|
||||
return { 'controlsDescendantBindings': true };
|
||||
},
|
||||
'update': function (element, valueAccessor) {
|
||||
ko.utils.setTextContent(element, valueAccessor());
|
||||
}
|
||||
};
|
||||
ko.virtualElements.allowedBindings['text'] = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue