Skip to content
Browse files

Check that the border styles require rendering when determining if th…

…e BorderRenderer is active
  • Loading branch information...
1 parent 396ca22 commit ff6d7506b9cc05d21c0c503f8b353225c2095a4c Jason Johnston committed Sep 6, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 sources/BorderRenderer.js
View
7 sources/BorderRenderer.js
@@ -40,9 +40,10 @@ PIE.BorderRenderer = PIE.RendererBase.newRenderer( {
isActive: function() {
var si = this.styleInfos;
- return si.borderImageInfo.isActive() ||
- si.borderRadiusInfo.isActive() ||
- si.backgroundInfo.isActive();
+ return ( si.borderImageInfo.isActive() ||
+ si.borderRadiusInfo.isActive() ||
+ si.backgroundInfo.isActive() ) &&
+ si.borderInfo.isActive(); //check BorderStyleInfo last because it's the most expensive
},
updateSize: function() {

0 comments on commit ff6d750

Please sign in to comment.
Something went wrong with that request. Please try again.