diff --git a/service_template.iced b/service_template.iced index b155c32..5ad2630 100644 --- a/service_template.iced +++ b/service_template.iced @@ -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 @ \ No newline at end of file + restartSync: () => Sync () => @restart.sync @