Rewrite "apply" calls with easier syntax.

develop
Icedream 2015-11-03 10:37:05 +01:00
parent d403f93e76
commit 95f939de53
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ module.exports = class Service extends EventEmitter
state: "stopped" state: "stopped"
start: () => @_start.apply @, [ false ].concat Array.prototype.slice.call(arguments) start: () => @_start false, arguments...
startSync: () => Sync () => @start.sync @ startSync: () => Sync () => @start.sync @
@ -85,7 +85,7 @@ module.exports = class Service extends EventEmitter
cb? null, service cb? null, service
stop: () => @_stop.apply @, [ false ].concat Array.prototype.slice.call(arguments) stop: () => @_stop false, arguments...
stopSync: () => Sync () => @stop.sync @ stopSync: () => Sync () => @stop.sync @