Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c7e517958d
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (17 sloc) 0.543 kb
#include "appjs.h"
#include "appjs_app.h"
namespace appjs {
using namespace v8;
Handle<Value> InitApp(const Arguments& args) {
HandleScope scope;
return scope.Close(App::NewInstance(args));
}
void Init(Handle<v8::Object> target) {
App::Init();
Window::Init();
target->Set(String::NewSymbol("init"), FunctionTemplate::New(InitApp)->GetFunction());
target->Set(String::NewSymbol("App"), App::constructor);
target->Set(String::NewSymbol("NativeWindow"), Window::constructor);
}
} /* appjs */
NODE_MODULE(appjs, appjs::Init)
Jump to Line
Something went wrong with that request. Please try again.