typos in font_files function and include

This commit is contained in:
Eric Meyer 2009-11-24 13:18:21 -07:00
parent a1c976bbcb
commit f37a7414c5
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
module Compass::SassExtensions::Functions module Compass::SassExtensions::Functions
end 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}" require "compass/sass_extensions/functions/#{func}"
end end

View File

@ -1,6 +1,6 @@
module Compass::SassExtensions::Functions::FontFiles module Compass::SassExtensions::Functions::FontFiles
def font_files(*args) 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 = [] files = []
while args.size > 0 while args.size > 0
files << "url('#{args.shift}') format('#{args.shift}')" files << "url('#{args.shift}') format('#{args.shift}')"