From 042972003fa14c7c026cf4015dc760185e4a1b57 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 17 Jan 2011 06:40:10 -0800 Subject: [PATCH] handle some slightly older versions of sass --- .../sass_extensions/monkey_patches/browser_support.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/compass/sass_extensions/monkey_patches/browser_support.rb b/lib/compass/sass_extensions/monkey_patches/browser_support.rb index c1b55e58..6dfa63d8 100644 --- a/lib/compass/sass_extensions/monkey_patches/browser_support.rb +++ b/lib/compass/sass_extensions/monkey_patches/browser_support.rb @@ -65,7 +65,13 @@ module Sass::Script class Funcall < Node include HasSimpleCrossBrowserFunctionSupport - alias sass_to_literal to_literal + if method_defined? :to_literal + alias sass_to_literal to_literal + else + def sass_to_literal + Script::String.new("#{name}(#{args.join(', ')})") + end + end def to_literal(args) if has_aspect?(args)