<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/assets/packed/domready.js</filename>
    </added>
    <added>
      <filename>test/assets/src/domready.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,10 @@
 class Packr
   class Minifier
     
+    def self.conditional_comments
+      @@conditional_comments
+    end
+    
     def initialize
       @concat = Parser.new(CONCAT).merge(DATA)
       
@@ -17,10 +21,10 @@ class Packr
       @clean = DATA.union(Parser.new(CLEAN))
       @whitespace = DATA.union(Parser.new(WHITESPACE))
       
-      @conditional_comments = @comments.copy
-      @conditional_comments.put_at(-1, &quot; \\3&quot;)
+      @@conditional_comments = @comments.copy
+      @@conditional_comments.put_at(-1, &quot; \\3&quot;)
       @whitespace.remove_at(2) # conditional comments
-      @comments.remove_at(2)      
+      @comments.remove_at(2)
     end
     
     def minify(script)
@@ -48,7 +52,7 @@ class Packr
       &quot;(COMMENT2)\\s*(REGEXP)?&quot; =&gt; lambda do |*args|
         match, comment, b, regexp = args[0..3]
         if comment =~ /^\/\*@/ and comment =~ /@\*\/$/
-          comments = @@conditional_comments.exec(comment)
+        #  comments = Minifier.conditional_comments.exec(comment)
         else
           comment = &quot;&quot;
         end</diff>
      <filename>lib/packr/minifier.rb</filename>
    </modified>
    <modified>
      <diff>@@ -36,6 +36,11 @@ class PackrTest &lt; Test::Unit::TestCase
         :source =&gt; File.read(&quot;#{dir}/src/selector.js&quot;),
         :packed =&gt; File.read(&quot;#{dir}/packed/selector.js&quot;).gsub(/\r?\n?/, ''),
         :output =&gt; &quot;#{dir}/test/selector.js&quot;
+      }],
+      :conditional_comments =&gt; [{
+        :source =&gt; File.read(&quot;#{dir}/src/domready.js&quot;),
+        :packed =&gt; File.read(&quot;#{dir}/packed/domready.js&quot;).gsub(/\r?\n?/, ''),
+        :output =&gt; &quot;#{dir}/test/domready.js&quot;
       }]
     }
   end
@@ -126,4 +131,10 @@ class PackrTest &lt; Test::Unit::TestCase
     assert_equal expected, actual
   end
   
+  def test_conditional_comments
+    expected = @data[:conditional_comments][0][:packed]
+    actual = Packr.pack(@data[:conditional_comments][0][:source], :shrink_vars =&gt; true)
+    File.open(@data[:conditional_comments][0][:output], 'wb') { |f| f.write(actual) }
+    assert_equal expected, actual
+  end
 end</diff>
      <filename>test/test_packr.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>62ee46e73aba9582b60eb41892d3c05af63de172</id>
    </parent>
  </parents>
  <author>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </author>
  <url>http://github.com/jcoglan/packr/commit/4cc307ad3479c80d037da5fc26e4bc84bdc5f42a</url>
  <id>4cc307ad3479c80d037da5fc26e4bc84bdc5f42a</id>
  <committed-date>2008-11-14T04:17:16-08:00</committed-date>
  <authored-date>2008-11-14T04:17:16-08:00</authored-date>
  <message>Fixing conditional comments bug in Minifier.</message>
  <tree>5838ed3d9ba313d3c4feddbacac42ffe0e3a379e</tree>
  <committer>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </committer>
</commit>
