Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Sep 29, 2016
2 parents 62debad + 9f0a2c3 commit bb37e19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/list-data-source.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ class ListDataSource

return =>
@_emitter.removeListener('trigger', eventHandler)
if @_emitter.listenerCount('trigger') is 0
@_cleanedup = true
@cleanup()
process.nextTick =>
if @_emitter.listenerCount('trigger') is 0
@_cleanedup = true
@cleanup()

loaded: ->
throw new Error("ListDataSource base class does not implement loaded()")
Expand Down

0 comments on commit bb37e19

Please sign in to comment.