We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e68d125 + 937aca6 commit a2752aaCopy full SHA for a2752aa
src/coconut/react/Key.hx
@@ -1,8 +1,10 @@
1
package coconut.react;
2
3
-abstract Key(Dynamic) from String from Bool from Float from Int {
+abstract Key(Dynamic) from String from Bool from Float from Int #if genes from {} #end {
4
+ #if !genes
5
@:keep @:from static function ofObj(o:{}):Key untyped {
6
var id = haxe.ds.ObjectMap.getId(o) || haxe.ds.ObjectMap.assignId(o);
7
return id;
8
}
9
+ #end
10
0 commit comments