mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
💄 Move extend calls to top of class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user