From f37a7414c517b5a6fcae5b0c4c3b2cea52526efb Mon Sep 17 00:00:00 2001 From: Eric Meyer Date: Tue, 24 Nov 2009 13:18:21 -0700 Subject: [PATCH] typos in font_files function and include --- lib/compass/sass_extensions/functions.rb | 2 +- lib/compass/sass_extensions/functions/font_files.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compass/sass_extensions/functions.rb b/lib/compass/sass_extensions/functions.rb index a1943a10..c33a3012 100644 --- a/lib/compass/sass_extensions/functions.rb +++ b/lib/compass/sass_extensions/functions.rb @@ -1,7 +1,7 @@ module Compass::SassExtensions::Functions end -%w(selectors enumerate urls display inline_image color_stop).each do |func| +%w(selectors enumerate urls display inline_image color_stop font_files).each do |func| require "compass/sass_extensions/functions/#{func}" end diff --git a/lib/compass/sass_extensions/functions/font_files.rb b/lib/compass/sass_extensions/functions/font_files.rb index babfaa4d..9b12b7e1 100644 --- a/lib/compass/sass_extensions/functions/font_files.rb +++ b/lib/compass/sass_extensions/functions/font_files.rb @@ -1,6 +1,6 @@ module Compass::SassExtensions::Functions::FontFiles def font_files(*args) - raise Sass::SyntaxError, "An even number of arguments must be passed to color-stop()" unless args.size % 2 == 0 + raise Sass::SyntaxError, "An even number of arguments must be passed to font_files()" unless args.size % 2 == 0 files = [] while args.size > 0 files << "url('#{args.shift}') format('#{args.shift}')"