fix regression in the transform api

This commit is contained in:
Chris Eppstein 2010-11-21 15:12:12 -08:00
parent b9c68bcc8c
commit ad7f2eb980
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ $default-skew-y : 5deg !default;
$origin-x: $default-origin-x, $origin-x: $default-origin-x,
$origin-y: $default-origin-y, $origin-y: $default-origin-y,
$origin-z: false, $origin-z: false,
$only3d: false $only3d: if($origin-z)
) { ) {
$origin: unquote(''); $origin: unquote('');
@if $origin-x or $origin-y or $origin-z { @if $origin-x or $origin-y or $origin-z {

View File

@ -1,7 +1,7 @@
module Compass::SassExtensions::Functions::If module Compass::SassExtensions::Functions::If
def if(truth, if_true, if_false = nil) def if(truth, if_true = nil, if_false = nil)
if truth.to_bool if truth.to_bool
if_true if_true || Sass::Script::Bool.new(true)
else else
if_false || Sass::Script::Bool.new(false) if_false || Sass::Script::Bool.new(false)
end end