code: function changeContainer(newContainer) {
          if (container != null) {
            container.unbind('scroll', handler);
          }
  
          container = newContainer;
          if (newContainer != null) {
            container.bind('scroll', handler);
          }
        }
docs: infinite-scroll-container sets the container which we want to be infinte scrolled, instead of the whole window. Must be an Angular or jQuery element, or, if jQuery is loaded, a jQuery selector as a string.