浏览代码

AnyProps.setDefaultProps

trethaller 7 年之前
父节点
当前提交
eb42ca9e0b
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 {};
 	}