💄 Move extend calls to top of class

This commit is contained in:
Kevin Sawicki
2013-08-26 19:09:42 -07:00
parent 03573b4e06
commit decaa3dfcf
15 changed files with 34 additions and 34 deletions

View File

@@ -4,6 +4,8 @@ EventEmitter = require 'event-emitter'
module.exports =
class Task
_.extend @prototype, EventEmitter
@once: (taskPath, args...) ->
task = new Task(taskPath)
task.one 'task:completed', -> task.terminate()
@@ -56,5 +58,3 @@ class Task
@childProcess = null
@off()
_.extend Task.prototype, EventEmitter