|
1 | 1 | /*! |
2 | | - * Infinite Scroll PACKAGED v3.0.4 |
| 2 | + * Infinite Scroll PACKAGED v3.0.5 |
3 | 3 | * Automatically add next page |
4 | 4 | * |
5 | 5 | * Licensed GPLv3 for open source use |
@@ -896,6 +896,10 @@ proto.destroy = function() { |
896 | 896 |
|
897 | 897 | delete this.element.infiniteScrollGUID; |
898 | 898 | delete instances[ this.guid ]; |
| 899 | + // remove jQuery data. #807 |
| 900 | + if ( jQuery && this.$element ) { |
| 901 | + jQuery.removeData( this.element, 'infiniteScroll' ); |
| 902 | + } |
899 | 903 | }; |
900 | 904 |
|
901 | 905 | // -------------------------- utilities -------------------------- // |
@@ -937,6 +941,9 @@ InfiniteScroll.setJQuery = function( $ ) { |
937 | 941 |
|
938 | 942 | utils.htmlInit( InfiniteScroll, 'infinite-scroll' ); |
939 | 943 |
|
| 944 | +// add noop _init method for jQuery Bridget. #768 |
| 945 | +proto._init = function() {}; |
| 946 | + |
940 | 947 | if ( jQuery && jQuery.bridget ) { |
941 | 948 | jQuery.bridget( 'infiniteScroll', InfiniteScroll ); |
942 | 949 | } |
@@ -1778,7 +1785,7 @@ return InfiniteScroll; |
1778 | 1785 | })); |
1779 | 1786 |
|
1780 | 1787 | /*! |
1781 | | - * Infinite Scroll v3.0.4 |
| 1788 | + * Infinite Scroll v3.0.5 |
1782 | 1789 | * Automatically add next page |
1783 | 1790 | * |
1784 | 1791 | * Licensed GPLv3 for open source use |
|
0 commit comments