mirror of https://github.com/icedream/ts3bot.git
Rewrite "apply" calls with easier syntax.
parent
d403f93e76
commit
95f939de53
|
@ -19,7 +19,7 @@ module.exports = class Service extends EventEmitter
|
|||
|
||||
state: "stopped"
|
||||
|
||||
start: () => @_start.apply @, [ false ].concat Array.prototype.slice.call(arguments)
|
||||
start: () => @_start false, arguments...
|
||||
|
||||
startSync: () => Sync () => @start.sync @
|
||||
|
||||
|
@ -85,7 +85,7 @@ module.exports = class Service extends EventEmitter
|
|||
|
||||
cb? null, service
|
||||
|
||||
stop: () => @_stop.apply @, [ false ].concat Array.prototype.slice.call(arguments)
|
||||
stop: () => @_stop false, arguments...
|
||||
|
||||
stopSync: () => Sync () => @stop.sync @
|
||||
|
||||
|
@ -151,4 +151,4 @@ module.exports = class Service extends EventEmitter
|
|||
|
||||
cb? err
|
||||
|
||||
restartSync: () => Sync () => @restart.sync @
|
||||
restartSync: () => Sync () => @restart.sync @
|
||||
|
|
Loading…
Reference in New Issue