Permalink
Browse files

Merge pull request #19 from rstacruz/revert_8

Revert unbinding of all event delegates
  • Loading branch information...
2 parents e433266 + 9b0661e commit a60890709513905187562551f91dd9b305a3ae78 @kossnocorp committed Jan 31, 2013
Showing with 0 additions and 19 deletions.
  1. +0 −18 spec/jquery.turbolinks_spec.coffee
  2. +0 −1 src/jquery.turbolinks.coffee
View
18 spec/jquery.turbolinks_spec.coffee
@@ -46,24 +46,6 @@ describe '$ Turbolinks', ->
callback1.should.have.been.calledWith($)
- it '''
- should remove all events delegated to
- document after trigger fetch
- ''', ->
- id = getUniqId()
- selector = '#' + id
- addEl = ->
- $('body').empty()
- $('<div>').attr(id: id).appendTo('body')
-
- addEl()
- $(document).on('event_name', selector, callback1)
- $(selector).trigger('event_name')
- $(document).trigger('page:fetch')
- addEl()
- $(selector).trigger('event_name')
- callback1.should.have.been.calledOnce
-
describe '$.setReadyEvent', ->
beforeEach ->
View
1 src/jquery.turbolinks.coffee
@@ -24,7 +24,6 @@ turbolinksReady = ->
# Fetch event handler
fetch = ->
- $(document).off(undefined, '**')
$.isReady = false
# Bind `ready` to DOM ready event

0 comments on commit a608907

Please sign in to comment.