-Node.prototype.offset = function( /* xnodeParent */ ){\r
- var x = 0, y = 0, elm;\r
- \r
- if( !this.parent ){\r
- console.log( 'xnode.offset() : no parent' );\r
- return { x : 0, y : 0 };\r
- };\r
- \r
- if( ( this._flags & X_Node_State.IN_TREE ) === 0 ){\r
- console.log( 'xnode.offset() : not belong tree.' );\r
- return { x : 0, y : 0 };\r
- };\r
- if( this._flags & X_Node_State.STYLE_IS_DISPLAY_NONE ) return { x : 0, y : 0 };\r
+Node.prototype[ 'offset' ] = function( /* xnodeParent */ ){\r
+\r
+ if( ( this[ '_flags' ] & X_Node_State.IN_TREE ) === 0 || this[ '_flags' ] & X_Node_State.STYLE_IS_DISPLAY_NONE ) return { x : 0, y : 0 };\r