Silence a warning in autocompile mode.
This commit is contained in:
parent
3e248176aa
commit
bcf6c74b7e
@ -142,18 +142,20 @@ module Sass
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
class Operation < Node
|
class Operation < Node
|
||||||
OPERATORS_TO_SASS = {
|
unless defined? OPERATORS_TO_SASS
|
||||||
:plus => '+',
|
OPERATORS_TO_SASS = {
|
||||||
:minus => '-',
|
:plus => '+',
|
||||||
:div => '/',
|
:minus => '-',
|
||||||
:mult => '*',
|
:div => '/',
|
||||||
:comma => ',',
|
:mult => '*',
|
||||||
:concat => ' ',
|
:comma => ',',
|
||||||
:neq => '!=',
|
:concat => ' ',
|
||||||
:eq => '==',
|
:neq => '!=',
|
||||||
:or => 'or',
|
:eq => '==',
|
||||||
:and => 'and'
|
:or => 'or',
|
||||||
}
|
:and => 'and'
|
||||||
|
}
|
||||||
|
end
|
||||||
def to_sass
|
def to_sass
|
||||||
"#{operand_to_sass(@operand1)} #{OPERATORS_TO_SASS[@operator]} #{operand_to_sass(@operand2)}"
|
"#{operand_to_sass(@operand1)} #{OPERATORS_TO_SASS[@operator]} #{operand_to_sass(@operand2)}"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user