Skip to content

Commit

Permalink
Merge pull request thoughtbot#81 from tka/master
Browse files Browse the repository at this point in the history
fix compact function bug
  • Loading branch information
Phil LaPier committed May 9, 2012
2 parents 8e41559 + fd23dd4 commit 9ff2e48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/bourbon/sass_extensions/functions/compact.rb
Expand Up @@ -4,8 +4,9 @@ module Bourbon::SassExtensions::Functions::Compact
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
Expand Down

0 comments on commit 9ff2e48

Please sign in to comment.