prototype.js: Fix handling of opacity in IE

pull/7/head
Francis Lachapelle 2012-12-06 13:02:06 -05:00
parent f141312195
commit 7c7989065c
1 changed files with 1 additions and 1 deletions

View File

@ -3157,7 +3157,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
var filter = Element.getStyle(element, 'filter');
if (filter.length === 0) return 1.0;
var match = (filter || '').match(/alpha\(opacity=(.*)\)/);
if (match[1]) return parseFloat(match[1]) / 100;
if (match && match[1]) return parseFloat(match[1]) / 100;
return 1.0;
}