Browse Source

Lua : add missing remove method to Array class

Justin Donaldson 10 năm trước cách đây
mục cha
commit
0d3a0ed2f7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/lua/_std/Array.hx

+ 1 - 1
std/lua/_std/Array.hx

@@ -78,7 +78,7 @@ class Array<T> {
 	}
 
 	public inline function remove( x : T ) : Bool {
-		return true;
+		return untyped this.remove(x);
 	}
 
 	public function indexOf( x : T, ?fromIndex:Int ) : Int return 1;