Commit 1cf64a31 by Sam Saccone

a simplification of the default options setting

parent 60f66275
...@@ -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