Add current element and event as params to clicked callback

This commit is contained in:
Alfredo Sumaran 2016-03-31 19:28:17 -05:00
parent e3a9830507
commit ff676333d0

View file

@ -171,10 +171,11 @@ class GitLabDropdown
selector = ".dropdown-page-one .dropdown-content a"
@dropdown.on "click", selector, (e) ->
selected = self.rowClicked $(@)
$el = $(@)
selected = self.rowClicked $el
if self.options.clicked
self.options.clicked(selected, e)
self.options.clicked(selected, $el, e)
# Finds an element inside wrapper element
getElement: (selector) ->