Nicolas Cannasse 9 달 전
부모
커밋
c98e7aaa1e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      hrt/impl/DomkitViewer.hx

+ 2 - 0
hrt/impl/DomkitViewer.hx

@@ -237,6 +237,8 @@ class DomkitViewer extends h2d.Object {
 
 	override function onRemove() {
 		super.onRemove();
+		if( currentObj != null )
+			currentObj.remove();
 		for( r in variablesFiles )
 			r.watch(null);
 		style.cssParser.variables = baseVariables;