From 80412b5c1d3e9d150635b94fd90bb0092b60e988 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sun, 12 Jun 2011 01:35:50 -0400 Subject: [PATCH] added engine to sprite_map --- lib/compass/sass_extensions/sprites/sprite_map.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/compass/sass_extensions/sprites/sprite_map.rb b/lib/compass/sass_extensions/sprites/sprite_map.rb index a24ab69d..546dd1d1 100644 --- a/lib/compass/sass_extensions/sprites/sprite_map.rb +++ b/lib/compass/sass_extensions/sprites/sprite_map.rb @@ -3,7 +3,7 @@ module Compass module Sprites class SpriteMap < Sass::Script::Literal attr_accessor :image_names, :path, :name, :map, :kwargs - attr_accessor :images, :width, :height + attr_accessor :images, :width, :height, :engine include SpriteMethods include ImageMethods @@ -20,7 +20,6 @@ module Compass end def initialize(sprites, path, name, context, kwargs) - require_engine! @image_names = sprites @path = path @name = name @@ -29,16 +28,12 @@ module Compass @images = nil @width = nil @height = nil + @engine = nil @evaluation_context = context validate! compute_image_metadata! end - # Loads the sprite engine - def require_engine! - self.class.send(:include, eval("::Compass::SassExtensions::Sprites::#{modulize}Engine")) - end - def inspect to_s end