Skip to content

Commit

Permalink
fixes Dash-Industry-Forum#1526 caused by refactor dash parser Dash-In…
Browse files Browse the repository at this point in the history
  • Loading branch information
bwidtmann committed Aug 23, 2016
1 parent 724827a commit ec68018
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions externals/xml2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ function X2JS(matchers, attrPrefix, ignoreRoot) {
var value2 = attr.value;
for(var m=0, ml=matchers.length; m < ml; m++) {
var matchobj = matchers[m];
if (matchobj.test.call(this, attr))
value2 = matchobj.converter.call(this, attr.value);
if (matchobj.test(attr)) {
value2 = matchobj.converter(attr.value);
}
}

result[attrPrefix+attr.name]=value2;
Expand Down

0 comments on commit ec68018

Please sign in to comment.