Skip to content
Browse files

Fix bug in the compact function.

  • Loading branch information...
1 parent b91e669 commit a7b8689fb895d1786c5cabda6f5008572386b5a2 @chriseppstein chriseppstein committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/compass/sass_extensions/functions/lists.rb
View
5 lib/compass/sass_extensions/functions/lists.rb
@@ -18,8 +18,9 @@ def blank(obj)
def compact(*args)
sep = :comma
if args.size == 1 && args.first.is_a?(Sass::Script::List)
- args = args.first.value
- sep = args.first.separator
+ list = args.first
+ args = list.value
+ sep = list.separator
end
Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep)
end

0 comments on commit a7b8689

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