1
0
Fork 0
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:
Nathan Weizenbaum 2009-04-24 18:58:56 -07:00
parent 6161e5fd5c
commit ca9ffcb039
2 changed files with 1 additions and 2 deletions

View file

@ -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),

View file

@ -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)