diff --git a/lib/compass/sass_extensions/functions/if.rb b/lib/compass/sass_extensions/functions/if.rb index 98c1591d..9f599de4 100644 --- a/lib/compass/sass_extensions/functions/if.rb +++ b/lib/compass/sass_extensions/functions/if.rb @@ -1,9 +1,9 @@ module Compass::SassExtensions::Functions::If - def if(truth, if_true, if_false) + def if(truth, if_true, if_false = nil) if truth.to_bool if_true else - if_false + if_false || Sass::Script::Bool.new(false) end end end