Skip to content

Commit

Permalink
Fix bug in the compact function.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Mar 28, 2011
1 parent b91e669 commit a7b8689
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/compass/sass_extensions/functions/lists.rb
Expand Up @@ -18,8 +18,9 @@ def blank(obj)
def compact(*args) def compact(*args)
sep = :comma sep = :comma
if args.size == 1 && args.first.is_a?(Sass::Script::List) if args.size == 1 && args.first.is_a?(Sass::Script::List)
args = args.first.value list = args.first
sep = args.first.separator args = list.value
sep = list.separator
end end
Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep) Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep)
end end
Expand Down

0 comments on commit a7b8689

Please sign in to comment.