public
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Change a call to #find into a more semantic #any? in css2sass.
nex3 (author)
Tue Apr 29 16:42:11 -0700 2008
commit  7bde632af86d78c9b19edc330cb0e684de78c278
tree    97f4f5d960a66c58843ced2e81f7d1e61af78f5d
parent  c5b86d9d34dd6ee36093abdad60db7919cb37ed5
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@ module Sass
0
 
0
     class RuleNode
0
       def to_sass(tabs, opts = {})
0
- str = "\n#{' ' * tabs}#{rule}#{children.find{|c| c.is_a? AttrNode } ? "\n" : ''}"
0
+ str = "\n#{' ' * tabs}#{rule}#{children.any? { |c| c.is_a? AttrNode } ? "\n" : ''}"
0
 
0
         children.each do |child|
0
           str << "#{child.to_sass(tabs + 1, opts)}"

Comments

    No one has commented yet.