bugfix
This commit is contained in:
parent
0c6000432b
commit
8c3d9cd9df
@ -96,6 +96,9 @@ bricks.str2data = function(s, d){
|
||||
return s;
|
||||
}
|
||||
bricks.apply_data = function(desc, data){
|
||||
if (data == {}){
|
||||
return desc;
|
||||
}
|
||||
var tmpl = JSON.stringify(desc);
|
||||
var s = bricks.obj_fmtstr(data, tmpl);
|
||||
return JSON.parse(s);
|
||||
|
Loading…
Reference in New Issue
Block a user