-/* --------------------------------------\r
- * TODO destory -> kill\r
- */\r
-\r
-function X_Node_destroy( isChild ){\r
- var xnodes = this[ '_xnodes' ], i, elm;\r
- \r
- if( ( this[ '_flags' ] & X_Node_State.EXIST ) === 0 ) return;\r
- \r
- elm = this[ '_rawObject' ] || X_UA_DOM.IE4 && X_Node__ie4getRawNode( this );\r
- \r
- if( xnodes && ( i = xnodes.length ) ){\r
- //for( ; i; ){\r
- // xnodes[ --i ].destroy( true );\r
- //};\r
- };\r
- elm && this._listeners && this[ 'unlisten' ](); // イベントの退避\r
-\r
- if( this[ '_flags' ] & X_Node_State.IN_TREE ){\r
- !isChild && this[ 'remove' ]();\r
- this[ '_flags' ] &= ~X_Node_State.EXIST;\r
- } else {\r
- this.parent && this.parent[ '_xnodes' ].splice( this.parent[ '_xnodes' ].indexOf( this ), 1 );\r
- elm && !isChild && X_Node__actualRemove( this );\r
- this[ 'kill' ]();\r
- };\r
- \r
- delete X_Node_CHASHE[ this[ '_uid' ] ];\r
-};\r
-\r