MYAPP.namespace = function(ns_string) { var parts = [], parts = ns_string.split("."), parent = MYAPP, i;
if (parts[0] === "MYAPP") { parts = parts.slice(1); }; for (i = 0; i < parts.length; i += 1) { parent[parts[i]] = { x: i + 1 }; parent = parent[parts[i]]; //////////??????????????????????????