Skip to content

Commit dda67fc

Browse files
committed
Effect core: Making animate class cross-frame safe, style guidence
1 parent ac8a19b commit dda67fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.effects.core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ var classAnimationActions = [ "add", "remove", "toggle" ],
161161
// prefix used for storing data on .data()
162162
dataSpace = "ec.storage.";
163163

164-
$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function(_, prop) {
164+
$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
165165
$.fx.step[ prop ] = function( fx ) {
166166
if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
167167
jQuery.style( fx.elem, prop, fx.end );
@@ -171,8 +171,8 @@ $.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopS
171171
});
172172

173173
function getElementStyles() {
174-
var style = document.defaultView
175-
? document.defaultView.getComputedStyle(this, null)
174+
var style = this.ownerDocument.defaultView
175+
? this.ownerDocument.defaultView.getComputedStyle( this, null )
176176
: this.currentStyle,
177177
newStyle = {},
178178
key,

0 commit comments

Comments
 (0)