| Name |
Last commit
|
Last update |
|---|---|---|
| bin | ||
| lib | ||
| media | ||
| scripts | ||
| src | ||
| test | ||
| .editorconfig | ||
| .gitignore | ||
| .gitmodules | ||
| .jshintrc | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| appveyor.yml | ||
| binding.gyp | ||
| package.json |
This patch and tests introduces a context for all callbacks currently in node-sass. Right now, they run w/ an ambiguous context, making the `this` keyword not helpful to importer developers (and eventually custom function developers). This creates a context object, adds the render options to said context object, and then uses that context for importer, success, and error callbacks via `this.options`. By using a context instead of just `.call(options...)` there is a hook for later should we find additional environmental information is valuable to importer / custom function developers such as the node environment, node-sass version, etc.
| Name |
Last commit
|
Last update |
|---|---|---|
| bin | Loading commit data... | |
| lib | Loading commit data... | |
| media | Loading commit data... | |
| scripts | Loading commit data... | |
| src | Loading commit data... | |
| test | Loading commit data... | |
| .editorconfig | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .gitmodules | Loading commit data... | |
| .jshintrc | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.md | Loading commit data... | |
| appveyor.yml | Loading commit data... | |
| binding.gyp | Loading commit data... | |
| package.json | Loading commit data... |