Skip to content

Commit

Permalink
Fix Issue guisouza#26
Browse files Browse the repository at this point in the history
  • Loading branch information
topogigiovanni committed Apr 28, 2016
1 parent 55754f1 commit 246128c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
17 changes: 15 additions & 2 deletions dist/dss.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,21 @@
value : dss.core.findMatch(dss.core.refreshValues[selector][_property])
};
}else{
if (dss.core.refreshValues[selector][_property].originalValue.indexOf(property) !== -1 ||property === undefined){
dss.core.refreshValues[selector][_property].value = dss.core.findMatch(dss.core.refreshValues[selector][_property].originalValue);
if (property && typeof property === 'object'){
var mustRefreshValues = false;
property.forEach(function(prop){
if (dss.core.refreshValues[selector][_property].originalValue.indexOf(prop) !== -1){
mustRefreshValues = true;
return;
}
});
if (mustRefreshValues){
dss.core.refreshValues[selector][_property].value = dss.core.findMatch(dss.core.refreshValues[selector][_property].originalValue);
}
}else{
if (dss.core.refreshValues[selector][_property].originalValue.indexOf(property) !== -1 ||property === undefined){
dss.core.refreshValues[selector][_property].value = dss.core.findMatch(dss.core.refreshValues[selector][_property].originalValue);
}
}
}
});
Expand Down
Loading

0 comments on commit 246128c

Please sign in to comment.