mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
KnockoutJS drop unused preprocess
This commit is contained in:
parent
4276896002
commit
12711be049
1 changed files with 0 additions and 4 deletions
|
|
@ -119,10 +119,6 @@ ko.expressionRewriting = (() => {
|
||||||
keyValueArray = parseObjectLiteral(bindingsStringOrKeyValueArray),
|
keyValueArray = parseObjectLiteral(bindingsStringOrKeyValueArray),
|
||||||
|
|
||||||
processKeyValue = (key, val) => {
|
processKeyValue = (key, val) => {
|
||||||
var /*writableVal,*/ obj = ko.bindingHandlers[key];
|
|
||||||
if (obj?.['preprocess'] && !obj['preprocess'](val, key, processKeyValue))
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Values are wrapped in a function so that each value can be accessed independently
|
// Values are wrapped in a function so that each value can be accessed independently
|
||||||
val = 'function(){return ' + val + ' }';
|
val = 'function(){return ' + val + ' }';
|
||||||
resultStrings.push("'" + key + "':" + val);
|
resultStrings.push("'" + key + "':" + val);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue