From e0e00c0683b2b82862596fa6dcee84dbf4282f06 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Fri, 14 Aug 2015 16:01:31 -0400 Subject: [PATCH] fix(view-factory): always merge classes from surrogate Fixes #147 --- src/view-factory.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/view-factory.js b/src/view-factory.js index d820c494..ba81d809 100644 --- a/src/view-factory.js +++ b/src/view-factory.js @@ -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]);