Browse Source

flash.Vector is only available on flash 10+ (closes #3195)

Simon Krajewski 11 năm trước cách đây
mục cha
commit
4fc07a7334
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/haxe/ds/Vector.hx

+ 1 - 1
std/haxe/ds/Vector.hx

@@ -54,7 +54,7 @@ abstract Vector<T>(VectorData<T>) {
 		If `length` is less than or equal to 0, the result is unspecified.
 	**/
 	public inline function new(length:Int) {
-		#if flash9
+		#if flash10
 			this = new flash.Vector<T>(length, true);
 		#elseif neko
 			this = untyped __dollar__amake(length);