Skip to content

Commit

Permalink
fix 1.9.2 issue in the staleness checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Sep 18, 2010
1 parent dbfbdd0 commit b94af29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/sass/plugin/staleness_checker.rb
Expand Up @@ -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
Expand Down

0 comments on commit b94af29

Please sign in to comment.