Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegate the stylesheet_saved callback to the stylesheet_updated callback of Sass #510

Closed
wants to merge 1 commit into from

Conversation

ChristianPeters
Copy link

The stylesheet_saved callback expects the file to be written, whereas the currently used updating_stylesheet is called before writing the stylesheet.

The stylesheet_updated callback has been added to Sass in order to fix this problem:

sass/sass#151

This change is necessary to ensure a consistent and expected behavior of the stylesheet_saved callback. Note that it is also invoked after writing the stylesheet in Compass::Compiler#compile: https://github.com/chriseppstein/compass/blob/stable/lib/compass/compiler.rb#L141

…back of Sass

The stylesheet_saved callback expects the file to be written, whereas the formerly used updating_stylesheet is called before writing the stylesheet. The stylesheet_updated callback has been added to Sass in order to ensure consistent behavior of stylesheet_saved.
@bryanwoods
Copy link

+1

@chriseppstein
Copy link
Member

I have concerns re: the sass patch that might make this PR unnecessary.

@scottdavis scottdavis closed this Nov 16, 2011
@ChristianPeters
Copy link
Author

The stylesheet_updating callback has been deprecated in Sass 3.1.11.

Please reopen this issue and merge in my commit.

See:

@ChristianPeters
Copy link
Author

I don't know if the changed callback is that important but consider to update the dependency on Sass from '> 3.1' to '> 3.1.11' then.

@ChristianPeters
Copy link
Author

Hello @scottdavis, why did you close this issue? I believe Compass uses deprecated Sass callbacks for months now.

@chriseppstein
Copy link
Member

@ChristianPeters
Copy link
Author

Allright then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants