js/foundation/json_renderer/json_renderer.js in rsence-pre-2.2.2.1 vs js/foundation/json_renderer/json_renderer.js in rsence-pre-2.3.0.0
- old
+ new
@@ -269,11 +269,11 @@
_hasRect = _origNode['rect'] !== undefined;
_rect = _hasRect?_origNode['rect']:null;
}
if( !_isViewClass ){
if( _hasRect ){
- console.log( "renderNode warning; Supposedly rect-incompatible class supplied: "+_className );
+ !this.isProduction && console.log( "renderNode warning; Supposedly rect-incompatible class supplied: "+_className );
}
}
// Checks, if any sub-views are defined.
_hasSubviews = _dataNode['subviews'] !== undefined;
@@ -442,10 +442,12 @@
if(_hasCall){
this._handleCall(_instance,_call);
}
}
catch (e){
- console.log('renderNode error:',e.toString()+', rect:',_rect,', class:',_dataNode['class'],', options:', JSON.stringify(_options),', e:',e);
+ var _optStr;
+ console.log('err:',e);
+ COMM.Queue.clientException(e,{name:'renderNode error',options:_options,className:_className,rect:_rect});
}
// Iterates recursively through all subviews, if specified.
if(_hasSubviews){
for( i = 0; i < _subViews.length; i++ ){
_subView = this.renderNode( _subViews[i], _instance );