mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
Fix Knockout binding non-Observable notice
This commit is contained in:
parent
3a589e240c
commit
bce9758338
3 changed files with 3 additions and 3 deletions
|
|
@ -134,7 +134,7 @@ ko.expressionRewriting = (() => {
|
|||
// it is !== existing value on that writable observable
|
||||
writeValueToProperty: (element, property, allBindings, key, value, checkIfDifferent) => {
|
||||
if (!property || !ko.isObservable(property)) {
|
||||
console.error(`"${key}" should be observable in ${element.outerHTML.replace(/>.+/,'>')}`);
|
||||
console.log(`"${key}" should contain observable in ${element.outerHTML.replace(/>.+/,'>')}`);
|
||||
// ko.dataFor(element).key = value;
|
||||
allBindings.get('$data')[key] = value;
|
||||
} else if (ko.isWriteableObservable(property) && (!checkIfDifferent || property.peek() !== value)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue