pm: throw when initialising module before ready event

This commit is contained in:
deepak1556 2015-04-15 16:50:25 +05:30
parent 29338e2fa4
commit 1f580cbb67
2 changed files with 11 additions and 5 deletions

View file

@ -17,7 +17,7 @@ namespace api {
class PowerMonitor : public mate::EventEmitter,
public base::PowerObserver {
public:
static mate::Handle<PowerMonitor> Create(v8::Isolate* isolate);
static v8::Handle<v8::Value> Create(v8::Isolate* isolate);
protected:
PowerMonitor();