MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / set$1

Function set$1

libs/echarts/echarts.simple.js:22856–22870  ·  view source on GitHub ↗
(opt, path, val, overwrite)

Source from the content-addressed store, hash-verified

22854}
22855
22856function set$1(opt, path, val, overwrite) {
22857 path = path.split(',');
22858 var obj = opt;
22859 var key;
22860 for (var i = 0; i < path.length - 1; i++) {
22861 key = path[i];
22862 if (obj[key] == null) {
22863 obj[key] = {};
22864 }
22865 obj = obj[key];
22866 }
22867 if (overwrite || obj[path[i]] == null) {
22868 obj[path[i]] = val;
22869 }
22870}
22871
22872function compatLayoutProperties(option) {
22873 each$1(LAYOUT_PROPERTIES, function (prop) {

Callers 1

backwardCompatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected