aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2011-09-29 18:55:58 -0400
committerCorey Frang <gnarf@gnarf.net>2011-09-29 18:55:58 -0400
commitdda67fc171d82523fa63bc63c011ebd4351911c9 (patch)
treec7dc9f2c345c5f8d8e4b73d5329f44688df6d403
parentac8a19b62d89a5b70b8ef89029ff81cdf889cf41 (diff)
downloadjquery-ui-dda67fc171d82523fa63bc63c011ebd4351911c9.tar.gz
jquery-ui-dda67fc171d82523fa63bc63c011ebd4351911c9.zip
Effect core: Making animate class cross-frame safe, style guidence
-rw-r--r--ui/jquery.effects.core.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js
index 15d81b4b0..699b41d81 100644
--- a/ui/jquery.effects.core.js
+++ b/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,