Sfoglia il codice sorgente

AnyProps.setDefaultProps

trethaller 7 anni fa
parent
commit
eb42ca9e0b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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 {};
 	}