소스 검색

Dynamic Text : fix group of function

Tom SPIRA 3 년 전
부모
커밋
5e98fd31eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hxd/res/DynamicText.hx

+ 1 - 1
hxd/res/DynamicText.hx

@@ -178,7 +178,7 @@ class DynamicText {
 							path.push("[" + i + "]");
 							if( Api.isOfType(e, Array) ) {
 								throw "TODO";
-							} else if( Api.isOfType(e, String) ) {
+							} else if( Api.isOfType(e, String) || Reflect.isFunction(e) ) {
 								var enew = applyText(path, e, data[i], dataRef == null ? null : dataRef[i], onMissing);
 								if( enew != null )
 									elements[i] = enew;