diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 576f30215ab..b14cbe5ad60 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -15,6 +15,7 @@ Anand Suresh Ben Stahl Brett Bergmann Burcu Dogan +Gor Martsen Hector Rovira Ido Shamun Jesse Friedman diff --git a/README.md b/README.md index d4374a29971..9a39542aa47 100644 --- a/README.md +++ b/README.md @@ -391,7 +391,7 @@ var name = 'ubuntu-http'; zone.createVM(name, { os: 'ubuntu' }, function(err, vm, operation) { // `operation` lets you check the status of long-running tasks. - operation.onComplete(function(err, metadata) { + operation.on('complete', function(err, metadata) { if (!err) { // Virtual machine created! }