Nicolas Cannasse пре 7 месеци
родитељ
комит
6756989134
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      hrt/impl/DomkitViewer.hx

+ 4 - 2
hrt/impl/DomkitViewer.hx

@@ -504,7 +504,8 @@ class DomkitViewer extends h2d.Object {
 							if( fmake == null ) fmake = compHooks.get(comp.parent.name);
 							if( fmake == null ) fmake = compHooks.get(comp.parent.name);
 							if( fmake == null ) {
 							if( fmake == null ) {
 								fmake = comp.parent.make;
 								fmake = comp.parent.make;
-								args = evalArgs(interp, m.parent.arguments);
+								if( m.parent != null )
+									args = evalArgs(interp, m.parent.arguments);
 							}
 							}
 							obj = fmake(args, parent);
 							obj = fmake(args, parent);
 							if( obj.dom == null )
 							if( obj.dom == null )
@@ -565,7 +566,8 @@ class DomkitViewer extends h2d.Object {
 		}
 		}
 	}
 	}
 
 
-	function resolveComponent( name : String, pmin : Int ) {
+	function resolveComponent( fullName : String, pmin : Int ) {
+		var name = fullName.split(".").pop();
 		var comp = domkit.Component.get(name, true);
 		var comp = domkit.Component.get(name, true);
 		if( comp == null ) {
 		if( comp == null ) {
 			for( path in componentsPaths ) {
 			for( path in componentsPaths ) {