Browse Source

Removing redundant duplicate calls.

v1.x
Jan Stola 9 years ago
parent
commit
6b38d3b808
  1. 3
      src/Image.cc

3
src/Image.cc

@ -43,9 +43,6 @@ Image::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target) {
ctor->InstanceTemplate()->SetInternalFieldCount(1);
ctor->SetClassName(Nan::New("Image").ToLocalChecked());
ctor->InstanceTemplate()->SetInternalFieldCount(1);
ctor->SetClassName(Nan::New("Image").ToLocalChecked());
// Prototype
Local<ObjectTemplate> proto = ctor->PrototypeTemplate();
Nan::SetAccessor(proto, Nan::New("source").ToLocalChecked(), GetSource, SetSource);

Loading…
Cancel
Save