Skip to content

Commit

Permalink
fix(view-factory): always merge classes from surrogate
Browse files Browse the repository at this point in the history
Fixes #147
  • Loading branch information
EisenbergEffect committed Aug 14, 2015
1 parent 3dfa30a commit e0e00c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/view-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ function applySurrogateInstruction(container, element, instruction, behaviors, b

if(currentAttributeValue){
if(key === 'class'){
if(currentAttributeValue !== 'au-target'){
//merge the surrogate classes
element.setAttribute('class', currentAttributeValue + ' ' + values[key]);
}
//merge the surrogate classes
element.setAttribute('class', currentAttributeValue + ' ' + values[key]);
}else if(key === 'style'){
//merge the surrogate styles
let styleObject = styleStringToObject(values[key]);
Expand Down

0 comments on commit e0e00c0

Please sign in to comment.