浏览代码

- removeChild returns the removed item

Franco Ponticelli 16 年之前
父节点
当前提交
b49c1a9a79
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/js/Dom.hx

+ 1 - 1
std/js/Dom.hx

@@ -46,7 +46,7 @@ typedef MetaDom<T> = {
 	function cloneNode( deep : Bool ) : T;
 	function hasChildNodes() : Bool;
 	function insertBefore( newChild : T, refChild : T ) : Void;
-	function removeChild( child : T ) : Void;
+	function removeChild( child : T ) : T;
 	function replaceChild( child : T, oldChild : T ) : Void;
 	function getAttribute( attr : String ) : String;
 	function setAttribute( attr : String, val : String ) : Void;