mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-01 14:00:34 +00:00
fix build for IE9
all unit tests now pass under IE9
This commit is contained in:
parent
8e6ecd98ae
commit
9462b556a3
4 changed files with 6 additions and 3 deletions
|
|
@ -209,7 +209,7 @@ forEach({
|
|||
}
|
||||
},
|
||||
|
||||
text: extend(msie
|
||||
text: extend((msie < 9)
|
||||
? function(element, value) {
|
||||
// NodeType == 3 is text node
|
||||
if (element.nodeType == 3) {
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ function browserTrigger(element, type) {
|
|||
element = element.parentNode;
|
||||
type = 'change';
|
||||
}
|
||||
if (msie) {
|
||||
if (msie < 9) {
|
||||
switch(element.type) {
|
||||
case 'radio':
|
||||
case 'checkbox':
|
||||
|
|
|
|||
|
|
@ -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 &&
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ describe("widget", function(){
|
|||
|
||||
compile('<a href="">empty link</a>');
|
||||
|
||||
if (msie) {
|
||||
if (msie < 9) {
|
||||
|
||||
event = document.createEventObject();
|
||||
expect(event.returnValue).not.toBeDefined();
|
||||
|
|
|
|||
Loading…
Reference in a new issue