Skip to content
Permalink
Browse files

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

  • Loading branch information
gnarf committed Sep 29, 2011
1 parent ac8a19b commit dda67fc171d82523fa63bc63c011ebd4351911c9
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.effects.core.js
@@ -161,7 +161,7 @@ var classAnimationActions = [ "add", "remove", "toggle" ],
// prefix used for storing data on .data()
dataSpace = "ec.storage.";

$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function(_, prop) {
$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
$.fx.step[ prop ] = function( fx ) {
if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
jQuery.style( fx.elem, prop, fx.end );
@@ -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,

0 comments on commit dda67fc

Please sign in to comment.
You can’t perform that action at this time.