Use camelCase not under_score, I forgot it's coffee script.
This commit is contained in:
parent
99f6a5678a
commit
948e50285d
9 changed files with 38 additions and 38 deletions
|
@ -21,7 +21,7 @@ AtomBindings::~AtomBindings() {
|
|||
void AtomBindings::BindTo(v8::Handle<v8::Object> process) {
|
||||
v8::HandleScope scope;
|
||||
|
||||
node::SetMethod(process, "atom_binding", Binding);
|
||||
node::SetMethod(process, "atomBinding", Binding);
|
||||
}
|
||||
|
||||
// static
|
||||
|
@ -42,7 +42,7 @@ v8::Handle<v8::Value> AtomBindings::Binding(const v8::Arguments& args) {
|
|||
|
||||
// Cached in process.__atom_binding_cache.
|
||||
v8::Local<v8::Object> binding_cache;
|
||||
v8::Local<v8::String> bc_name = v8::String::New("__atom_binding_cache");
|
||||
v8::Local<v8::String> bc_name = v8::String::New("__atomBindingCache");
|
||||
if (process->Has(bc_name)) {
|
||||
binding_cache = process->Get(bc_name)->ToObject();
|
||||
DCHECK(!binding_cache.IsEmpty());
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
IDWeakMap = process.atom_binding('id_weak_map').IDWeakMap
|
||||
IDWeakMap = process.atomBinding('id_weak_map').IDWeakMap
|
||||
|
||||
module.exports = IDWeakMap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue