Skip to content

Commit a2752aa

Browse files
authored
Merge pull request #13 from MVCoconut/genes
Key can be anything with "-lib genes" (which uses native Map)
2 parents e68d125 + 937aca6 commit a2752aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coconut/react/Key.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package coconut.react;
22

3-
abstract Key(Dynamic) from String from Bool from Float from Int {
3+
abstract Key(Dynamic) from String from Bool from Float from Int #if genes from {} #end {
4+
#if !genes
45
@:keep @:from static function ofObj(o:{}):Key untyped {
56
var id = haxe.ds.ObjectMap.getId(o) || haxe.ds.ObjectMap.assignId(o);
67
return id;
78
}
9+
#end
810
}

0 commit comments

Comments
 (0)