Commit 94d067f6 by Andrew Nesbitt

Merge pull request #41 from samccone/sjs/simplify_default_options

a simplification of the default options setting
parents 5265e7b3 1cf64a31
...@@ -22,9 +22,7 @@ SASS_OUTPUT_STYLE = { ...@@ -22,9 +22,7 @@ SASS_OUTPUT_STYLE = {
}; };
exports.render = function(css, callback, options) { exports.render = function(css, callback, options) {
var paths, style; var paths, style;
if (toString.call(options) !== '[object Object]') { typeof options != "object" && (options = {});
options = {};
}
paths = options.include_paths || []; paths = options.include_paths || [];
if (!((style = options.output_style) in SASS_OUTPUT_STYLE)) { if (!((style = options.output_style) in SASS_OUTPUT_STYLE)) {
style = 'nested'; style = 'nested';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment