bugfix
This commit is contained in:
parent
57752b8433
commit
6634559657
@ -96,7 +96,7 @@ bricks.str2data = function(s, d){
|
||||
return s;
|
||||
}
|
||||
bricks.apply_data = function(desc, data){
|
||||
if (Object.keys(data).length == 0){
|
||||
if (bricks.is_empty(data)){
|
||||
return desc;
|
||||
}
|
||||
var tmpl = JSON.stringify(desc);
|
||||
|
@ -1,5 +1,8 @@
|
||||
var bricks = window.bricks || {};
|
||||
bricks.bug = false;
|
||||
bricks.is_empty = function(obj){
|
||||
return JSON.stringify(obj) === '{}';
|
||||
}
|
||||
bricks.debug = function(...args){
|
||||
if (! bricks.bug){
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user