Hacker News new | past | comments | ask | show | jobs | submit login

Same here, but I wouldn't expect much from a jQuery plugin that implements "infinite scroll". Like I need stuff to start loading by itself whenever I reach the bottom of the page.

Also, looking at their code, the first thing I laid eyes on was this statement:

  var infinity = window.infinity = {};
Which, in this context, would be the exact same as

  var infinity = {};



I believe they are doing that to override any functions/objects already bound to window.infinity from other plugins/scripts. Look at the infinity.noConflict() function at the bottom of the source, which seems to be inspired by the jQuery.noConflict().


It doesn't matter. Both snippets do the exact same thing, except the first has two attributions, the second just one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: