|
@@ -356,14 +356,14 @@ class Xml {
|
|
if (_attributes==null)
|
|
if (_attributes==null)
|
|
_attributes = {};
|
|
_attributes = {};
|
|
Reflect.setField (_attributes, att, value );
|
|
Reflect.setField (_attributes, att, value );
|
|
- return null;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
public function remove( att : String ) : Void{
|
|
public function remove( att : String ) : Void{
|
|
if( nodeType != Xml.Element )
|
|
if( nodeType != Xml.Element )
|
|
throw "bad nodeType";
|
|
throw "bad nodeType";
|
|
Reflect.deleteField( _attributes, att );
|
|
Reflect.deleteField( _attributes, att );
|
|
- return null;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
public function exists( att : String ) : Bool {
|
|
public function exists( att : String ) : Bool {
|
|
@@ -422,7 +422,7 @@ class Xml {
|
|
if( x._parent != null ) x._parent._children.remove(x);
|
|
if( x._parent != null ) x._parent._children.remove(x);
|
|
x._parent = this;
|
|
x._parent = this;
|
|
_children.push( x );
|
|
_children.push( x );
|
|
- return null;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
public function removeChild( x : Xml ) : Bool {
|
|
public function removeChild( x : Xml ) : Bool {
|
|
@@ -439,7 +439,7 @@ class Xml {
|
|
if( x._parent != null ) x._parent._children.remove(x);
|
|
if( x._parent != null ) x._parent._children.remove(x);
|
|
x._parent = this;
|
|
x._parent = this;
|
|
_children.insert( pos, x );
|
|
_children.insert( pos, x );
|
|
- return null;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
public function toString() : String {
|
|
public function toString() : String {
|