Contains all news related functions for loading and controlling the news page.
Loads and displays the next set of news items.
Contains the current list of article DOM
Designates the minimum number of pixels that the user can scroll (calculated from the bottom) before another load event is triggered.
Contains the current list of pages DOM data-role="page" items that still need to be added to the DOM (much faster to add all at once after load is done downloading). This helps prevent the app from seeming to hang or become unresponsive.
Number of pages to load from the news website after a trigger event occurs.
Called on create of an article page. Mainly this function just attempts to download the article and show it.
Triggered when the news page is first created based on jQuery Mobile pagecreate event. This is called after the page itself is created but before any jQuery Mobile styling is applied.
Triggered when the news page is first initialized based on jQuery Mobile pageinit event.
Triggered when regular scroll event happens in news scroller window. It is used to check if the user is near the bottom of the page, so more content can be loaded (simulate infinite scrolling).