Skip to content

Commit

Permalink
fix issue with default loader and react 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Jul 18, 2014
1 parent 1ae98b8 commit ceb6558
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/react-infinite-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (React) {
hasMore: false,
loadMore: function () {},
threshold: 250,
loader: InfiniteScroll._defaultLoader,
loader: null,
component: React.DOM.div
};
},
Expand Down Expand Up @@ -63,8 +63,5 @@ module.exports = function (React) {
this.detachScrollListener();
}
});
InfiniteScroll.setDefaultLoader = function (loader) {
InfiniteScroll._defaultLoader = loader;
};
return InfiniteScroll;
};

0 comments on commit ceb6558

Please sign in to comment.