Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 21, 2015
1 parent a0f5c66 commit ace7246
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -8,10 +8,10 @@ function accesorString(value) {
var length = childProperties.length;
var propertyString = "global";
var result = "";
for (var i = 0; i < length; i++) {
if (i > 0)
result += "if(!" + propertyString + ") " + propertyString + " = {};";

for(var i = 0; i < length; i++) {
if(i > 0)
result += "if(!" + propertyString + ") " + propertyString + " = {};\n";
propertyString += "[" + JSON.stringify(childProperties[i]) + "]";
}

Expand Down

0 comments on commit ace7246

Please sign in to comment.