From ebe59d4a4b7e4aa6f24d07902789707c82b20fd2 Mon Sep 17 00:00:00 2001 From: Scott McGinness Date: Wed, 6 Nov 2013 16:47:42 +0000 Subject: [PATCH] Fix issue #38 Requiring png only exposes the Png() class --- src/module.cpp | 1 + src/png.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module.cpp b/src/module.cpp index badb9ab..dea129e 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -14,3 +14,4 @@ init(v8::Handle target) DynamicPngStack::Initialize(target); } +NODE_MODULE(png, init) diff --git a/src/png.cpp b/src/png.cpp index ddb3fe2..c8eeff2 100644 --- a/src/png.cpp +++ b/src/png.cpp @@ -227,5 +227,3 @@ Png::PngEncodeAsync(const Arguments &args) return Undefined(); } - -NODE_MODULE(png, Png::Initialize)