Browse Source

Added canvas.{width,height}

v1.x
Tj Holowaychuk 14 years ago
parent
commit
ec51aa066b
  1. 2
      src/canvas.cc

2
src/canvas.cc

@ -50,6 +50,8 @@ Canvas::New(const Arguments &args) {
return ThrowException(Exception::TypeError(String::New("height required")));
Canvas *canvas = new Canvas(args[0]->Int32Value(), args[1]->Int32Value());
args.This()->Set(String::NewSymbol("width"), args[0]);
args.This()->Set(String::NewSymbol("height"), args[1]);
canvas->Wrap(args.This());
return args.This();
}

Loading…
Cancel
Save