Browse Source

Misc refactoring

v1.x
Tj Holowaychuk 14 years ago
parent
commit
cdfca98203
  1. 4
      src/Canvas.cc

4
src/Canvas.cc

@ -54,9 +54,7 @@ Canvas::Initialize(Handle<Object> target) {
Handle<Value>
Canvas::New(const Arguments &args) {
HandleScope scope;
int width = 0
, height = 0;
int width = 0, height = 0;
if (args[0]->IsNumber()) width = args[0]->Uint32Value();
if (args[1]->IsNumber()) height = args[1]->Uint32Value();
Canvas *canvas = new Canvas(width, height);

Loading…
Cancel
Save