projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b8fa25a351f38c805826de55b2d27a93e90b5d5b
[platform/framework/web/crosswalk-tizen.git]
/
1
define(['./namespace'], function (namespace) {
2
3
/**
4
* set "nested" object property
5
*/
6
function set(obj, prop, val){
7
var parts = (/^(.+)\.(.+)$/).exec(prop);
8
if (parts){
9
namespace(obj, parts[1])[parts[2]] = val;
10
} else {
11
obj[prop] = val;
12
}
13
}
14
15
return set;
16
17
});