<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,7 +18,7 @@ To use, the following three variables need to be configured:
 
 2. `foregroundPNGSelectors` - comma separated CSS selectors (as you would specify in a css file) targeting elements using PNG in the foreground.
 
-        foregroundPNGSelectors: ['img'],
+        foregroundPNGSelectors: 'img',
 
 3. `backgroundPNGSelectors` - comma separated CSS selectors (as you would specify in a css file) targeting elements using PNG in the background.
 
@@ -30,7 +30,7 @@ To use, the following three variables need to be configured:
     
     Entry the selectors in a comma-separated list like this:
 
-        backgroundPNGSelectors: ['#header, .comment, #nav li'],
+        backgroundPNGSelectors: '#header, .comment, #nav li',
 
 ## Including the Script in HTML
 </diff>
      <filename>README.md</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ To use, the following three variables need to be configured:
 
 2. `foregroundPNGSelectors` - comma separated CSS selectors (as you would specify in a css file) targeting elements using PNG in the foreground.
 
-        foregroundPNGSelectors: ['img'],
+        foregroundPNGSelectors: 'img',
 
 3. `backgroundPNGSelectors` - comma separated CSS selectors (as you would specify in a css file) targeting elements using PNG in the background.
 
@@ -31,7 +31,7 @@ To use, the following three variables need to be configured:
     
     Entry the selectors in a comma-separated list like this:
 
-        backgroundPNGSelectors: ['#header, .comment, #nav li'],
+        backgroundPNGSelectors: '#header, .comment, #nav li',
 
 ## Including the Script in HTML
 
@@ -60,9 +60,9 @@ var PNGFix = {
 
   transparentGIF: '/images/spacer.gif',
 
-  foregroundPNGSelectors: ['img'],
+  foregroundPNGSelectors: 'img',
 
-  backgroundPNGSelectors: [''],
+  backgroundPNGSelectors: '',
 
   isPNGForeground: function(element) {
     return (element.src &amp;&amp; element.src.match(/\.png/i))
@@ -139,21 +139,8 @@ var PNGFix = {
     if (!/MSIE (5\.5|6)/.test(navigator.userAgent)) { return; }
 
     document.writeln('&lt;style type=&quot;text/css&quot;&gt;');
-
-    var elements = PNGFix.foregroundPNGSelectors;
-    for (i = 0; i &lt; elements.length; i++) {
-      document.write(elements[i]);
-      if (elements[i] != elements[elements.length - 1]) { document.writeln(','); }
-    }
-    if (elements.length &gt; 0) { document.writeln('{ behavior: expression((this.runtimeStyle.behavior = &quot;none&quot;) &amp;&amp; (PNGFix.fixForeground(this))); }'); }
-
-    var elements = PNGFix.backgroundPNGSelectors;
-    for (i = 0; i &lt; elements.length; i++) {
-      document.write(elements[i]);
-      if (elements[i] != elements[elements.length - 1]) { document.writeln(','); }
-    }
-    if (elements.length &gt; 0) { document.writeln('{ behavior: expression((this.runtimeStyle.behavior = &quot;none&quot;) &amp;&amp; (PNGFix.fixBackground(this))); }'); }
-
+    if (PNGFix.foregroundPNGSelectors.length &gt; 0) { document.writeln(PNGFix.foregroundPNGSelectors + ' { behavior: expression((this.runtimeStyle.behavior = &quot;none&quot;) &amp;&amp; (PNGFix.fixForeground(this))); }'); }
+    if (PNGFix.backgroundPNGSelectors.length &gt; 0) { document.writeln(PNGFix.backgroundPNGSelectors + ' { behavior: expression((this.runtimeStyle.behavior = &quot;none&quot;) &amp;&amp; (PNGFix.fixBackground(this))); }'); }
     document.writeln('&lt;/style&gt;');
   }
 })();</diff>
      <filename>pngfix.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>96c72f1283fbbcaab3ba911475a9b468055c861c</id>
    </parent>
  </parents>
  <author>
    <name>Jason Cheow</name>
    <email>jason@jasoncheow.com</email>
  </author>
  <url>http://github.com/jasoncheow/pngfix/commit/ed87e2c4324b06027a56ddfe9f2e48e43caf8a4f</url>
  <id>ed87e2c4324b06027a56ddfe9f2e48e43caf8a4f</id>
  <committed-date>2009-10-14T20:15:55-07:00</committed-date>
  <authored-date>2009-10-14T20:15:55-07:00</authored-date>
  <message>Use string instead of array for foregroundPNGSelectors and backgroundPNGSelectors, enabling slight code optimization.</message>
  <tree>7641064553f850b8ccf1f4ef6338709d09f0ab94</tree>
  <committer>
    <name>Jason Cheow</name>
    <email>jason@jasoncheow.com</email>
  </committer>
</commit>
