Skip to content

Commit

Permalink
Fix $.fn.closestScrollable detection
Browse files Browse the repository at this point in the history
  • Loading branch information
KODerFunk committed Oct 28, 2015
1 parent 92ca43b commit d417811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/evrobone/jquery-additions.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ do ($ = jQuery) =>
callback $(element)

$.fn.closestScrollable = ->
$(_.find(@.get().concat(@parents().get()), (p) -> $(p).css('overflowY') is 'auto') or window)
$(_.find(@.get().concat(@parents().get()), (p) -> $(p).css('overflowY') in ['auto', 'scroll']) or window)

# RESEARCH
# $.fn.blockHide = ->
Expand Down

0 comments on commit d417811

Please sign in to comment.