diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index daeae7ac..496ff8da 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -330,9 +330,8 @@ describe('$compile', function() { elementName = parts.shift(); parts.sort(); parts.unshift(elementName); - forEach(parts, function(value, key){ - if (value.substring(0,3) == 'ng-') { - } else { + forEach(parts, function(value){ + if (value.substring(0,2) !== 'ng') { value = value.replace('=""', ''); var match = value.match(/=(.*)/); if (match && match[1].charAt(0) != '"') {