 
     test 'Rye off', (done) ->
         itens = $('.list li')
-        foo = (event) -> assert false, "Foo"
 
-        itens.on 'blur', foo
+        itens.on 'blur', do_not_call
         itens.off 'blur'
         itens.trigger 'blur'
 

    test 'remove nothing', ->
        div = makeElement('div')
        DOMEvents.removeListener div, 'foo'
        assert true

    test 'remove listener', (done) ->
        div = makeElement('div')
        count = 0
        foo = (event) -> assert false, "Foo"
        bar = (event) -> count++

        DOMEvents.addListener div, 'foo', foo
        DOMEvents.addListener div, 'bar', bar
        DOMEvents.removeListener div, 'foo'

        DOMEvents.trigger div, 'bar'
        DOMEvents.trigger div, 'foo'

        setTimeout ->
            assert.equal count, 1
            done()
        , 0

    test 'remove selector', (done) ->
        div = makeElement('div')
        count = 0
        foo = -> assert false
        bar = -> count++

        DOMEvents.addListener div, 'click', 'div', bar
        DOMEvents.addListener div, 'click', 'a', foo
        DOMEvents.removeListener div, 'click', 'a'

        DOMEvents.trigger div, 'click'

        setTimeout ->
            assert.equal count, 1
            done()
        , 0

    test 'remove handler', (done) ->
        div = makeElement('div')
        count = 0
        foo = (event) -> assert false, "Foo"
        bar = (event) -> count++

        DOMEvents.addListener div, 'click', false, foo
        DOMEvents.addListener div, 'click', false, bar
        DOMEvents.removeListener div, '*', false, foo

        DOMEvents.trigger div, 'click'

        setTimeout ->
            assert.equal count, 1
            done()
        , 0

    test 'remove all', (done) ->
        div = makeElement('div')
        foo = (event) -> assert false, "Foo"

        DOMEvents.addListener div, 'click', false, foo
        DOMEvents.addListener div, 'focus', false, foo
        DOMEvents.addListener div, 'blur', false, foo
        DOMEvents.removeListener div, '*'

        DOMEvents.trigger div, 'click focus blur'

        DOMEvents.trigger document, 'click'

        setTimeout ->
            assert.equal counter, 1
            done()
        , 0

