Pārlūkot izejas kodu

AnyProps.setDefaultProps

trethaller 7 gadi atpakaļ
vecāks
revīzija
eb42ca9e0b
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      hxd/impl/AnyProps.hx

+ 4 - 0
hxd/impl/AnyProps.hx

@@ -10,6 +10,10 @@ class AnyProps {
 		return p;
 	}
 
+	public function setDefaultProps( kind : String ) {
+		props = getDefaultProps(kind);
+	}
+
 	public function getDefaultProps( ?kind : String ) : Any {
 		return {};
 	}