Permalink
Browse files

Return null object if parsing of -pie-background returns no colors or…

… images
  • Loading branch information...
1 parent 673c731 commit 3f4f0005c7bef636def6352b4f03f92a0e7b0214 Jason Johnston committed Sep 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/BackgroundStyleInfo.js
View
2 sources/BackgroundStyleInfo.js
@@ -232,7 +232,7 @@ PIE.BackgroundStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
} );
}
- return props;
+ return ( props && ( props.color || props.images[0] ) ) ? props : null;
},
/**

0 comments on commit 3f4f000

Please sign in to comment.