Commit ea2b7c13 by Gong Hao

bug fix

parent cef9e341
...@@ -48,11 +48,14 @@ Handle<Value> Render(const Arguments& args) { ...@@ -48,11 +48,14 @@ Handle<Value> Render(const Arguments& args) {
sass_context* ctx = sass_new_context(); sass_context* ctx = sass_new_context();
String::AsciiValue astr(args[0]); String::AsciiValue astr(args[0]);
Local<Function> callback = Local<Function>::Cast(args[1]); Local<Function> callback = Local<Function>::Cast(args[1]);
String::AsciiValue bstr(args[2]);
Integer* tint = Integer::Cast(*args[3]);
ctx->source_string = new char[strlen(*astr)+1]; ctx->source_string = new char[strlen(*astr)+1];
strcpy(ctx->source_string, *astr); strcpy(ctx->source_string, *astr);
ctx->options.include_paths = args[2]; ctx->options.include_paths = new char[strlen(*bstr)+1];
ctx->options.output_style = args[3]; strcpy(ctx->options.include_paths, *bstr);
ctx->options.output_style = tint->Value();
ctx->callback = Persistent<Function>::New(callback); ctx->callback = Persistent<Function>::New(callback);
ctx->request.data = ctx; ctx->request.data = ctx;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"main": "./sass.js", "main": "./sass.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/gonghao/node-sass.git" "url": "git://github.com/andrew/node-sass.git"
}, },
"scripts": { "scripts": {
"install": "node rebuild.js" "install": "node rebuild.js"
......
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