Permalink
Browse files

🐞 add noop _init method for jQuery Bridget. #768

  • Loading branch information...
desandro committed Apr 15, 2018
1 parent 7ef024f commit 247fad6b65f163a9f4abca3de9150d14262f9160
Showing with 3 additions and 0 deletions.
  1. +3 βˆ’0 js/core.js
View
@@ -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 );
}

0 comments on commit 247fad6

Please sign in to comment.