paulirish/infinite-scroll — pull request #135 by AnthonyDiSanti (2012-03-01 09:49:31+00:00)
Title: Do not attach object via jQuery.data() when object instantiation fails

If the options don't pass validation or if the path is missing, then the infinitescroll object is not instantiated. In this case, we must detect the failure and prevent the defunct object from being attached to the dom element via jQuery.data()