Support for new versions of sass where the callback name changed.
This commit is contained in:
parent
e6b967a8c3
commit
3110fc5d9e
@ -67,9 +67,13 @@ module Compass
|
||||
end
|
||||
end
|
||||
unless @callbacks_loaded
|
||||
|
||||
Sass::Plugin.on_updated_stylesheet do |sass_file, css_file|
|
||||
Compass.configuration.run_stylesheet_saved(css_file)
|
||||
on_saved = Proc.new do |sass_file, css_file|
|
||||
Compass.configuration.run_stylesheet_saved(css_file)
|
||||
end
|
||||
if Sass::Plugin.respond_to?(:on_updated_stylesheet)
|
||||
Sass::Plugin.on_updated_stylesheet(&on_saved)
|
||||
else
|
||||
Sass::Plugin.on_updating_stylesheet(&on_saved)
|
||||
end
|
||||
|
||||
Sass::Plugin.on_compilation_error do |e, filename, css|
|
||||
|
Loading…
Reference in New Issue
Block a user