Permalink
Browse files

fix 1.9.2 issue in the staleness checker.

  • Loading branch information...
1 parent dbfbdd0 commit b94af29a352579fb9d57b7da0893ce9d6a830d53 @chriseppstein committed Sep 18, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/sass/plugin/staleness_checker.rb
View
5 lib/sass/plugin/staleness_checker.rb
@@ -90,7 +90,10 @@ def dependencies_stale?(uri, importer, css_mtime)
return true
end
end
- timestamps[css_mtime] = dependencies(uri, importer).any?(&dependency_updated?(css_mtime))
+ checker = dependency_updated?(css_mtime)
+ timestamps[css_mtime] = dependencies(uri, importer).any? do |dep|
+ checker.call(*dep)
+ end
rescue Sass::SyntaxError
# If there's an error finding dependencies, default to recompiling.
true

0 comments on commit b94af29

Please sign in to comment.