fredwu / jquery-endless-scroll

Endless/infinite scrolling/pagination.
http://fredwu.github.com/jquery-endless-scroll/
837 stars 176 forks source link

Use `do` for pass `$ = jQuery` #34

Open kossnocorp opened 11 years ago

kossnocorp commented 11 years ago
do ($ = jQuery) ->
  $.fn.endlessScroll = (options) ->
    new EndlessScroll(this, options).run()

... is more much better than:

(($) ->
  $.fn.endlessScroll = (options) ->
    new EndlessScroll(this, options).run()
)(jQuery)
kossnocorp commented 4 years ago

Any updates on this?