forked from sass/node-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a backwards compatible node-style callback
This is node-style callbacks for sass#676. This allows us to release the new callback style without introducing backwards incompatible changes (or making changes to the binary from 2.0.1). If a node style callback is provided, it will be used. For now, this stacks with the original `options.success` and `options.error`, although it can be trivially changed to an xor. To highlight the new interface, a separate `describe` was added to the tests which identifies the `{options}, cb` interface and tests it independently.
- Loading branch information
1 parent
8c3bd77
commit 50fb92f
Showing
3 changed files
with
77 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters