r2343 - removing all inline styles fixed in IE8
Author: a.farkas.pm
Date: Thu Mar 19 13:59:11 2009
New Revision: 2343
Modified:
branches/dev/effects/dev-animateClass/index.html
branches/dev/effects/ui/effects.core.js
Log:
removing all inline styles fixed in IE8
Modified: branches/dev/effects/dev-animateClass/index.html
==============================================================================
--- branches/dev/effects/dev-animateClass/index.html (original)
+++ branches/dev/effects/dev-animateClass/index.html Thu Mar 19 13:59:11
2009
@@ -197,7 +197,6 @@
$('div.height-test')
.toggleClass('height-small', {duration: 500});
});
-
});
</script>
</head>
Modified: branches/dev/effects/ui/effects.core.js
==============================================================================
--- branches/dev/effects/ui/effects.core.js (original)
+++ branches/dev/effects/ui/effects.core.js Thu Mar 19 13:59:11 2009
@@ -133,17 +133,16 @@
function getElementOptions(){
var elem = $(this),
newStyle,
- oldStyleAttr = elem.attr("style") || '';
+ oldStyleAttr = elem.attr("style") || ' ';
(clearInlineStyles &&
- elem.attr("style", ''));
+ elem.attr("style", ' '));
newStyle = getElementStyles.call(this);
- //handle width/height here?
if(clearInlineStyles){
elem.attr("style", oldStyleAttr);
- oldStyleAttr = "";
+ oldStyleAttr = " ";
}
return {element: elem, newStyle: newStyle, resetStyle: oldStyleAttr};
@@ -272,7 +271,7 @@
childs = (animateChilds) ?
$(animateChilds, this) :
[],
- oldStyleAttr = that.attr("style") || '';
+ oldStyleAttr = that.attr("style") || ' ';
if (value.toggle) {
that.hasClass(value.toggle) ? value.remove = value.toggle :
value.add = value.toggle;