Effect core: Making animate class cross-frame safe, style guidence

This commit is contained in:
Corey Frang 2011-09-29 18:55:58 -04:00
parent ac8a19b62d
commit dda67fc171

View File

@ -171,8 +171,8 @@ $.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopS
});
function getElementStyles() {
var style = document.defaultView
? document.defaultView.getComputedStyle(this, null)
var style = this.ownerDocument.defaultView
? this.ownerDocument.defaultView.getComputedStyle( this, null )
: this.currentStyle,
newStyle = {},
key,