jquery-endless-scroll icon indicating copy to clipboard operation
jquery-endless-scroll copied to clipboard

Use `do` for pass `$ = jQuery`

Open kossnocorp opened this issue 13 years ago • 1 comments

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 avatar Oct 05 '12 03:10 kossnocorp

Any updates on this?

kossnocorp avatar May 15 '20 07:05 kossnocorp