mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Remove Emitter::one shim
This commit is contained in:
@@ -432,7 +432,7 @@ describe 'TextBuffer', ->
|
||||
expect(event.newText).toBe "foo\nbar"
|
||||
|
||||
it "allows a 'changed' event handler to safely undo the change", ->
|
||||
buffer.one 'changed', -> buffer.undo()
|
||||
buffer.once 'changed', -> buffer.undo()
|
||||
buffer.change([0, 0], "hello")
|
||||
expect(buffer.lineForRow(0)).toBe "var quicksort = function () {"
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#TODO remove once all packages have been updated
|
||||
{Emitter} = require 'emissary'
|
||||
Emitter::one = (args...) -> @once(args...)
|
||||
Emitter::trigger = (args...) -> @emit(args...)
|
||||
|
||||
#TODO remove once all packages have been updated
|
||||
|
||||
Reference in New Issue
Block a user