Skip to content

Commit 30b11b7

Browse files
committed
IE8 fix for the opacity check
IE8 fails to set the match variable which throws a javascript variable
1 parent 4b9fe6f commit 30b11b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prototype/dom/dom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@
30003000
var filter = Element.getStyle(element, 'filter');
30013001
if (filter.length === 0) return 1.0;
30023002
var match = (filter || '').match(/alpha\(opacity=(.*)\)/);
3003-
if (match[1]) return parseFloat(match[1]) / 100;
3003+
if (match && match[1]) return parseFloat(match[1]) / 100;
30043004
return 1.0;
30053005
}
30063006

@@ -3478,4 +3478,4 @@
34783478
if (window.attachEvent)
34793479
window.attachEvent('onunload', destroyCache_IE);
34803480

3481-
})(this);
3481+
})(this);

0 commit comments

Comments
 (0)