| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 490cac0 commit fbef11b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,12 +112,12 @@ void Connection::Initialize(v8::Handle<v8::Object> target) { | |||
| 112 | 112 | #endif | |
| 113 | 113 | ||
| 114 | 114 | // Getter for connection.readyState | |
| 115 | - constructor_template->PrototypeTemplate()->SetAccessor( | ||
| 115 | + constructor_template->InstanceTemplate()->SetAccessor( | ||
| 116 | 116 | ready_state_symbol, | |
| 117 | 117 | ReadyStateGetter); | |
| 118 | 118 | ||
| 119 | 119 | // Getter for connection.readyState | |
| 120 | - constructor_template->PrototypeTemplate()->SetAccessor( | ||
| 120 | + constructor_template->InstanceTemplate()->SetAccessor( | ||
| 121 | 121 | fd_symbol, | |
| 122 | 122 | FDGetter); | |
| 123 | 123 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ Timer::Initialize (Handle<Object> target) | |||
| 27 | 27 | NODE_SET_PROTOTYPE_METHOD(constructor_template, "start", Timer::Start); | |
| 28 | 28 | NODE_SET_PROTOTYPE_METHOD(constructor_template, "stop", Timer::Stop); | |
| 29 | 29 | ||
| 30 | - constructor_template->PrototypeTemplate()->SetAccessor(repeat_symbol, | ||
| 30 | + constructor_template->InstanceTemplate()->SetAccessor(repeat_symbol, | ||
| 31 | 31 | RepeatGetter, RepeatSetter); | |
| 32 | 32 | ||
| 33 | 33 | target->Set(String::NewSymbol("Timer"), constructor_template->GetFunction()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments