From 3b74b7b83c4cf75529fe230a58aa1946f72e61d4 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sat, 6 Apr 2013 17:37:54 -0700 Subject: [PATCH] don't throw errors for unnamed properties (#373) --- templates/default/tmpl/properties.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default/tmpl/properties.tmpl b/templates/default/tmpl/properties.tmpl index dfa6ee0e..97a3d23a 100644 --- a/templates/default/tmpl/properties.tmpl +++ b/templates/default/tmpl/properties.tmpl @@ -5,7 +5,7 @@ var parentProp = null; props.forEach(function(prop, i) { if (!prop) { return; } - if ( parentProp && prop.name.indexOf(parentProp.name + '.') === 0 ) { + if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) { prop.name = prop.name.substr(parentProp.name.length+1); parentProp.subprops = parentProp.subprops || []; parentProp.subprops.push(prop);