diff options
| author | Igor Minar | 2011-04-09 00:16:40 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-04-09 00:16:44 -0700 | 
| commit | 9462b556a31efbe1560c5086326c80a6e9e39f87 (patch) | |
| tree | a3542f6e894906eef2b0c7d9ae57bb741d6fdd7e /test/testabilityPatch.js | |
| parent | 8e6ecd98ae5ef24a7398aee19c006b9dda5385ff (diff) | |
| download | angular.js-9462b556a31efbe1560c5086326c80a6e9e39f87.tar.bz2 | |
fix build for IE9
all unit tests now pass under IE9
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index b5c2c3f4..0cc85a8c 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -194,6 +194,9 @@ function sortedHtml(element, showNgClass) {          attrs.push(' class="' + className + '"');        }        for(var i=0; i<attributes.length; i++) { +        if (i>0 && attributes[i] == attributes[i-1]) +          continue; //IE9 creates dupes. Ignore them! +          var attr = attributes[i];          if(attr.name.match(/^ng:/) ||              attr.value && | 
