Skip to content

Commit c1ca3e7

Browse files
committed
πŸ‘¨β€πŸš’ build v3.0.5
1 parent 50279fb commit c1ca3e7

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

β€Ždist/infinite-scroll.pkgd.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Infinite Scroll PACKAGED v3.0.4
2+
* Infinite Scroll PACKAGED v3.0.5
33
* Automatically add next page
44
*
55
* Licensed GPLv3 for open source use
@@ -896,6 +896,10 @@ proto.destroy = function() {
896896

897897
delete this.element.infiniteScrollGUID;
898898
delete instances[ this.guid ];
899+
// remove jQuery data. #807
900+
if ( jQuery && this.$element ) {
901+
jQuery.removeData( this.element, 'infiniteScroll' );
902+
}
899903
};
900904

901905
// -------------------------- utilities -------------------------- //
@@ -937,6 +941,9 @@ InfiniteScroll.setJQuery = function( $ ) {
937941

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

944+
// add noop _init method for jQuery Bridget. #768
945+
proto._init = function() {};
946+
940947
if ( jQuery && jQuery.bridget ) {
941948
jQuery.bridget( 'infiniteScroll', InfiniteScroll );
942949
}
@@ -1778,7 +1785,7 @@ return InfiniteScroll;
17781785
}));
17791786

17801787
/*!
1781-
* Infinite Scroll v3.0.4
1788+
* Infinite Scroll v3.0.5
17821789
* Automatically add next page
17831790
*
17841791
* Licensed GPLv3 for open source use

0 commit comments

Comments
Β (0)