1 // Google Closure Compiler helpers (used only to make the minified file smaller)
2 ko.exportSymbol = function(koPath, object) {
3 var tokens = koPath.split(".");
5 // In the future, "ko" may become distinct from "koExports" (so that non-exported objects are not reachable)
6 // At that point, "target" would be set to: (typeof koExports !== "undefined" ? koExports : ko)
9 for (var i = 0; i < tokens.length - 1; i++)
10 target = target[tokens[i]];
11 target[tokens[tokens.length - 1]] = object;
13 ko.exportProperty = function(owner, publicName, object) {
14 owner[publicName] = object;