Skip to content

Commit

Permalink
Code: Don't push to vector for Render*Sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Jan 7, 2015
1 parent a956d18 commit a11fafd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ struct Sass_Import** sass_importer(const char* file, const char* prev, void* coo

Handle<Value> argv[] = {
NanNew<String>(file),
NanNew<String>(prev),
NanNew<Number>(imports_collection.size() - 1)
NanNew<String>(prev)
};

Local<Object> returned_value = Local<Object>::Cast(NanNew<Value>(ctx_w->importer_callback->Call(3, argv)));
Local<Object> returned_value = Local<Object>::Cast(NanNew<Value>(ctx_w->importer_callback->Call(2, argv)));

prepare_import_results(returned_value->Get(NanNew("objectLiteral")), ctx_w);
}
Expand Down

0 comments on commit a11fafd

Please sign in to comment.