Browse Source

instanceof Enum is true.

Nicolas Cannasse 19 years ago
parent
commit
cbe3204e61
2 changed files with 4 additions and 0 deletions
  1. 2 0
      std/flash/Boot.hx
  2. 2 0
      std/js/Boot.hx

+ 2 - 0
std/flash/Boot.hx

@@ -124,6 +124,8 @@ class Boot {
 			case Dynamic:
 				return true;
 			default:
+				if( o.__enum__ == cl )
+					return true;
 				return false;
 			}
 		}

+ 2 - 0
std/js/Boot.hx

@@ -164,6 +164,8 @@ class Boot {
 			case Dynamic:
 				return true;
 			default:
+				if( o.__enum__ == cl )
+					return true;
 				return false;
 			}
 		}