{
var ret = { };
var _this = this;
- ['id', 'name', 'parent', 'title', 'path', 'items' ].forEach( function(k) {
- ret[k] = _this[k];
+ ['id', 'name', 'parent', 'title', 'path', 'items' , 'permname' ].forEach( function(k) {
+ ret[k] = typeof(_this[k]) == 'undefined' ? '' _this[k];
});
return ret;
},
// strings..
if (!_this.doubleStringProps) {
els.push(left + JSON.stringify(obj[i]));
+ return;
}
if (_this.doubleStringProps.indexOf(i) > -1) {
els.push(left + JSON.stringify(obj[i]));
return;
}
// single quote..
- els.push(left + "'" + v.replace(/'/g, "\\'") + "'");
+ els.push(left + "'" + obj[i].replace(/'/g, "\\'") + "'");
});