Skip to content

Commit

Permalink
🐞 add noop _init method for jQuery Bridget. #768
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Apr 15, 2018
1 parent 7ef024f commit 247fad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/core.js
Expand Up @@ -373,6 +373,9 @@ InfiniteScroll.setJQuery = function( $ ) {

utils.htmlInit( InfiniteScroll, 'infinite-scroll' );

// add noop _init method for jQuery Bridget. #768
proto._init = function() {};

if ( jQuery && jQuery.bridget ) {
jQuery.bridget( 'infiniteScroll', InfiniteScroll );
}
Expand Down

0 comments on commit 247fad6

Please sign in to comment.