Skip to content

Commit c39614f

Browse files
committed
πŸ›  log option -> debug;
v2 backward compatibility
1 parent 4996b8c commit c39614f

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ var infScroll = new InfiniteScroll( '.container', {
126126
// this.on( 'append', function() {...})
127127
// }
128128

129-
log: false,
129+
debug: false,
130130
// Logs events and state changes to the console.
131131
})
132132
```

β€Žjs/core.jsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function InfiniteScroll( element, options ) {
6262
InfiniteScroll.defaults = {
6363
// path: null,
6464
// hideNav: null,
65+
// debug: false,
6566
};
6667

6768
// create & destroy methods
@@ -163,7 +164,7 @@ var loggers = {
163164

164165
// log events
165166
proto.log = function( type, args ) {
166-
if ( !this.options.log ) {
167+
if ( !this.options.debug ) {
167168
return;
168169
}
169170
var message = '[InfiniteScroll] ' + type;

β€Žsandbox/button-class.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h1 class="post-header__title">Mealio logo</h1>
101101
history: false,
102102
button: '.load-more-button',
103103
status: '.scroll-status',
104-
log: true,
104+
debug: true,
105105
});
106106

107107
</script>

β€Žsandbox/js/masonry-images.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ imagesLoaded( '.grid', function() {
2525
var infScroll = new InfiniteScroll( '.grid', {
2626
path: '.pagination__next',
2727
append: '.grid__item',
28-
log: true,
28+
debug: true,
2929
outlayer: msnry,
3030
status: '.scroll-status',
3131
scrollThreshold: 1,

β€Žsandbox/js/scroll-loader.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ var infScroll = new InfiniteScroll( container, {
44
append: '.post',
55
nav: '.pagination',
66
status: '.scroll-status',
7-
log: true,
7+
debug: true,
88
// history: false,
99
});

β€Žsandbox/requirejs/requirejs-main.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function initScroll( InfiniteScroll ) {
2020
append: '.post',
2121
nav: '.pagination',
2222
status: '.scroll-status',
23-
log: true,
23+
debug: true,
2424
history: false,
2525
});
2626
}

β€Žtest/unit/history-window.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ QUnit.test( 'history window', function( assert ) {
1111
scrollThreshold: false,
1212
history: 'replace',
1313
historyTitle: true,
14-
// log: true,
14+
// debug: true,
1515
});
1616

1717
var page1Top = getTop( demoElem );

0 commit comments

Comments
Β (0)