Remove Emitter::one shim

This commit is contained in:
Kevin Sawicki
2013-11-19 12:58:56 -08:00
parent 13186fcf7a
commit 03e8bc6f19
2 changed files with 1 additions and 2 deletions

View File

@@ -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 () {"

View File

@@ -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