Skip to content
This repository
Browse code

BUGFIX: Media styles in IE9 (fixes #4 of #7497)

Changed media conditional as was evaluating as false in IE9
  • Loading branch information...
commit 1197a2fa143831953cb2b6ba620903ad5791fb93 1 parent 6af3b07
Naomi Guyer authored June 21, 2012
2  javascript/jquery-ondemand/jquery.ondemand.js
@@ -44,7 +44,7 @@
44 44
 		},
45 45
 
46 46
 		requireCss : function(styleUrl, media){
47  
-			if(media === null) media = 'all';
  47
+			if(!media) media = 'all';
48 48
 
49 49
 			// Don't double up on loading scripts
50 50
 			if($.isItemLoaded(styleUrl)) return;

0 notes on commit 1197a2f

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