Permalink
Browse files

No need for closure var

  • Loading branch information...
1 parent 306acc4 commit ae84ccc4fc0950271e895268994ed4aec3ab1aac Jason Johnston committed Nov 7, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 sources/BackgroundStyleInfo.js
View
3 sources/BackgroundStyleInfo.js
@@ -257,10 +257,9 @@ PIE.BackgroundStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
},
getCss: PIE.StyleInfoBase.cacheWhenLocked( function() {
- var el = this.targetElement;
return this.getCss3() ||
this.withActualBg( function() {
- var cs = el.currentStyle;
+ var cs = this.targetElement.currentStyle;
return cs.backgroundColor + ' ' + cs.backgroundImage + ' ' + cs.backgroundRepeat + ' ' +
cs.backgroundPositionX + ' ' + cs.backgroundPositionY;
} );

0 comments on commit ae84ccc

Please sign in to comment.