Confirmed users
478
edits
Line 112: | Line 112: | ||
start: function() { | start: function() { | ||
if (this._started) { | if (this._started) { | ||
throw 'Module XXX have already started.'; | |||
} | } | ||
this._started = true; | this._started = true; | ||
Line 124: | Line 124: | ||
stop: function() { | stop: function() { | ||
if (!this._started) { | if (!this._started) { | ||
throw 'Module XXX have not started.'; | |||
} | } | ||
this._started = false; | this._started = false; |