mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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)
|
// 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)
|
// 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 = target[tokens[i]];
|
||||||
target[tokens[tokens.length - 1]] = object;
|
target[tokens[l]] = object;
|
||||||
};
|
};
|
||||||
ko.exportProperty = (owner, publicName, object) => owner[publicName] = object;
|
ko.exportProperty = (owner, publicName, object) => owner[publicName] = object;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ class koSubscription
|
||||||
this._node = null;
|
this._node = null;
|
||||||
this._domNodeDisposalCallback = null;
|
this._domNodeDisposalCallback = null;
|
||||||
ko.exportProperty(this, 'dispose', this.dispose);
|
ko.exportProperty(this, 'dispose', this.dispose);
|
||||||
ko.exportProperty(this, 'disposeWhenNodeIsRemoved', this.disposeWhenNodeIsRemoved);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue