Fix property access of Element.currentStyle.
The compiler is going to start annotating that as type CSSStyleDeclaration.
@@ -409,8 +409,8 @@ bot.dom.getEffectiveStyle = function(elem, propertyName) {
bot.dom.getCascadedStyle_ = function(elem, styleName) {
var style = elem.currentStyle || elem.style;
var value = style[styleName];
- if (!goog.isDef(value) && goog.isFunction(style['getPropertyValue'])) {
- value = style['getPropertyValue'](styleName);
+ if (!goog.isDef(value) && goog.isFunction(style.getPropertyValue)) {
+ value = style.getPropertyValue(styleName);
}
if (value != 'inherit') {
@@ -1352,4 +1352,3 @@ bot.dom.appendVisibleTextLinesFromElementInComposedDom_ = function(
}
});
};
-
