mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
15 lines
626 B
JavaScript
15 lines
626 B
JavaScript
// Google Closure Compiler helpers (used only to make the minified file smaller)
|
|
ko.exportSymbol = function(koPath, object) {
|
|
var tokens = koPath.split(".");
|
|
|
|
// 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;
|
|
|
|
for (var i = 0; i < tokens.length - 1; i++)
|
|
target = target[tokens[i]];
|
|
target[tokens[tokens.length - 1]] = object;
|
|
};
|
|
ko.exportProperty = function(owner, publicName, object) {
|
|
owner[publicName] = object;
|
|
};
|