@@ -10,7 +10,7 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i
1010
1111/**
1212 * Copyright Kamil Pękala http://github.com/kamilkp
13- * Angular Virtual Scroll Repeat v2.0.3 2018/03/16
13+ * Angular Virtual Scroll Repeat v2.1.0 2018/03/28
1414 */
1515
1616/* global console, setTimeout, module */
@@ -74,6 +74,7 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i
7474 * `scrolled-to-end-offset` - set this number to trigger the scrolledToEnd callback n items before the last gets rendered
7575 * `scrolled-to-beginning` - callback will be called when the first item of the list is rendered
7676 * `scrolled-to-beginning-offset` - set this number to trigger the scrolledToBeginning callback n items before the first gets rendered
77+ * `show-console-debug` - if false, suppresses debug messages in console (defaults to true)
7778 * EVENTS:
7879 * - `vsRepeatTrigger` - an event the directive listens for to manually trigger reinitialization
7980 * - `vsRepeatReinitialized` - an event the directive emits upon reinitialization done
@@ -176,7 +177,8 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i
176177 horizontal : false ,
177178 autoresize : false ,
178179 hunked : false ,
179- hunkSize : 0
180+ hunkSize : 0 ,
181+ showConsoleDebug : true
180182 } ;
181183 var vsRepeatModule = angular . module ( 'vs-repeat' , [ ] ) . directive ( 'vsRepeat' , [ '$compile' , '$parse' , function ( $compile , $parse ) {
182184 return {
@@ -556,7 +558,9 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i
556558 __startIndex = 0 ;
557559 __endIndex = 1 ;
558560 } else {
559- _warnMismatch ( ) ;
561+ if ( options . showConsoleDebug ) {
562+ _warnMismatch ( ) ;
563+ }
560564
561565 var relativeScroll = $scrollPosition - options . offsetBefore - scrollOffset ;
562566
0 commit comments