         DOMEvents.trigger document, 'click'
 
         setTimeout ->
-            assert.equal count, 1
+            assert.equal counter, 1
             done()
         , 0
 

    test 'delegate', (done) ->
        list = $('.list').get(0)
        item = $('.a').get(0)
        count = 0
        fn = (event) ->
            count++
            assert.equal event.currentTarget, document
            assert.equal event.target, item



    test 'Rye off', (done) ->
        itens = $('.list li')

        itens.on 'blur', do_not_call
        itens.off 'blur'
        itens.trigger 'blur'

