mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
KnockoutJS disposeWhenNodeIsRemoved not used external
This commit is contained in:
parent
c9ebb5a767
commit
4fff41580e
4 changed files with 52 additions and 53 deletions
|
|
@ -4,10 +4,10 @@ ko.exportSymbol = (koPath, object) => {
|
|||
|
||||
// In the future, "ko" may become distinct from "koExports" (so that non-exported objects are not reachable)
|
||||
// At that point, "target" would be set to: (typeof koExports !== "undefined" ? koExports : ko)
|
||||
var target = ko;
|
||||
var target = ko, i = 0, l = tokens.length - 1;
|
||||
|
||||
for (var i = 0; i < tokens.length - 1; i++)
|
||||
for (; i < l; i++)
|
||||
target = target[tokens[i]];
|
||||
target[tokens[tokens.length - 1]] = object;
|
||||
target[tokens[l]] = object;
|
||||
};
|
||||
ko.exportProperty = (owner, publicName, object) => owner[publicName] = object;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue