mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Don't have Script::Functions extend self.
This commit is contained in:
parent
6161e5fd5c
commit
ca9ffcb039
2 changed files with 1 additions and 2 deletions
|
@ -55,7 +55,6 @@ module Sass::Script
|
|||
end
|
||||
|
||||
instance_methods.each { |m| undef_method m unless m.to_s =~ /^__/ }
|
||||
extend self
|
||||
|
||||
# Creates a Sass::Script::Color object from hue, saturation, and lightness.
|
||||
# As per the CSS3 spec (http://www.w3.org/TR/css3-color/#hsl-color),
|
||||
|
|
|
@ -92,7 +92,7 @@ class SassFunctionTest < Test::Unit::TestCase
|
|||
|
||||
def assert_rgb_hsl(rgb, hsl)
|
||||
hsl = hsl.map {|v| Sass::Script::Parser.parse v, 0, 0 }
|
||||
assert_equal(rgb, Sass::Script::Functions.hsl(*hsl).value)
|
||||
assert_equal(rgb, Sass::Script::Functions::EvaluationContext.new({}).hsl(*hsl).value)
|
||||
end
|
||||
|
||||
def evaluate(value)
|
||||
|
|
Loading…
Add table
Reference in a new issue