Skip to content

Commit

Permalink
replacement for console.log with logger.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed May 9, 2018
1 parent e0948de commit 1b5f19f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@
if (typeof definition != 'undefined' && !definition.hasOwnProperty('__new__')){
definition['__new__'] = function (properties){
_CastProps(properties,this);
console.log('__NEW__');
logger.debug('__NEW__');
};
}

if (typeof definition != 'undefined' && !definition.hasOwnProperty('css')){
definition['css'] = function QC_CSS3(_css){
if (typeof this['body'] != 'undefined' && this['body']['style'] != 'undefined'){
console.log('body style');
logger.debug('body style');
this['body']['style'] = _Cast(_css,this['body']['style']);
}
};
Expand All @@ -407,16 +407,16 @@
definition['append'] = function QC_Append(){
var child = (arguments.length>0)?(arguments[0]):(this['body']);
if (typeof this['body'] != 'undefined'){
console.log('append element');
logger.debug('append element');
if (arguments.lenght>0){
console.log('append to element');
logger.debug('append to element');
this['body'].append(child);
if (typeof this['childs']=='undefined'){
this['childs']=[];
}
this['childs'].push(child);
} else {
console.log('append to body');
logger.debug('append to body');
document.body.append(child);
}
}
Expand Down Expand Up @@ -467,7 +467,7 @@
} else if (c_new.__definition.hasOwnProperty('body')){
c_new['body'] = c_new.__definition.body;
}
console.log('llamada a new' + c_new.__definition.__classType);
logger.debug('llamada a new' + c_new.__definition.__classType);
// console.trace();
c_new.__new__(args);
if (c_new.hasOwnProperty('_new_')){
Expand Down

0 comments on commit 1b5f19f

Please sign in to comment.