         emitter = new EventEmitter()
         emitter.on "newListener", ->
           soon -> emitter.emit "data", "x"
-        take 1, Bacon.fromEventTarget(emitter, "data")
+        take 1, Bacon.fromEvent(emitter, "data")
       ["x"]
     )
 

        emitter.on "newListener", ->
          soon -> emitter.emit "click", "x"
        element = toEventTarget emitter
        take 1, Bacon.fromEventTarget(element, "click")
      ["x"]
    )


    emitter.addListener(event, handler)
  removeEventListener: (event, handler) -> emitter.removeListener(event, handler)

describe "Bacon.fromEventTarget", ->
  it "is legacy name for Bacon.fromEvent", ->
    expect(Bacon.fromEvent).to.equal(Bacon.fromEventTarget)

describe "Bacon.fromEvent", ->
  soon = (f) -> setTimeout f, 0
  describe "should create EventStream from DOM object", ->
    expectStreamEvents(
