Don't use 'event' in popupClose

It doesn't work on firefox and we don't need it anyway
This commit is contained in:
Piotr Sarnacki 2015-01-09 15:33:19 +01:00
parent 9023d0ca06
commit 0db4a3a6ca

View File

@ -20,7 +20,7 @@ Travis.NotFoundView = Ember.View.extend
name = event?.target?.name || name
$("##{name}").toggleClass('display')
popupClose: ->
$(event.target).closest('.popup').removeClass('display')
$('.popup').removeClass('display')
popupCloseAll: ->
if view = Travis.View.currentPopupView
view.destroy()