Skip to content

Commit

Permalink
remove arguments of function that don't use them
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Nov 27, 2016
1 parent 3658d35 commit 204ed8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Chosen extends AbstractChosen
delta = delta * 40 if evt.type is 'DOMMouseScroll'
@search_results.scrollTop(delta + @search_results.scrollTop())

blur_test: (evt) ->
blur_test: ->
this.close_field() if not @active_field and @container.hasClass "chosen-container-active"

close_field: ->
Expand Down
2 changes: 1 addition & 1 deletion coffee/chosen.proto.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class @Chosen extends AbstractChosen
delta = delta * 40 if evt.type is 'DOMMouseScroll'
@search_results.scrollTop = delta + @search_results.scrollTop

blur_test: (evt) ->
blur_test: ->
this.close_field() if not @active_field and @container.hasClassName("chosen-container-active")

close_field: ->
Expand Down
8 changes: 4 additions & 4 deletions coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ class AbstractChosen
mouse_enter: -> @mouse_on_container = true
mouse_leave: -> @mouse_on_container = false

input_focus: (evt) ->
input_focus: ->
if @is_multiple
setTimeout (=> this.container_mousedown()), 50 unless @active_field
else
@activate_field() unless @active_field

input_blur: (evt) ->
input_blur: ->
if not @mouse_on_container
@active_field = false
setTimeout (=> this.blur_test()), 100
Expand Down Expand Up @@ -151,7 +151,7 @@ class AbstractChosen
else
this.results_show()

results_search: (evt) ->
results_search: ->
if @results_showing
this.winnow_results()
else
Expand Down Expand Up @@ -300,7 +300,7 @@ class AbstractChosen
this.results_search()
break

clipboard_event_checker: (evt) ->
clipboard_event_checker: ->
return if @is_disabled
setTimeout (=> this.results_search()), 50

Expand Down

0 comments on commit 204ed8d

Please sign in to comment.