From 2eb7f0720b4f9db8bba89d63c17fc01018434c8d Mon Sep 17 00:00:00 2001 From: Aarron Date: Fri, 11 May 2018 09:58:56 +1200 Subject: [PATCH] Fix up indention --- dist/angular-vs-repeat.js | 2 +- dist/angular-vs-repeat.min.js | 2 +- src/angular-vs-repeat.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/angular-vs-repeat.js b/dist/angular-vs-repeat.js index 2f10865..5d6eb53 100644 --- a/dist/angular-vs-repeat.js +++ b/dist/angular-vs-repeat.js @@ -180,7 +180,7 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i hunkSize: 0, debug: false }; - var debugStyles = "\n "; + var debugStyles = "\n "; var vsRepeatModule = angular.module('vs-repeat', []).directive('vsRepeat', ['$compile', '$parse', function ($compile, $parse) { return { restrict: 'A', diff --git a/dist/angular-vs-repeat.min.js b/dist/angular-vs-repeat.min.js index 154ea70..83bb428 100644 --- a/dist/angular-vs-repeat.min.js +++ b/dist/angular-vs-repeat.min.js @@ -1 +1 @@ -function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t"),b=K.element("<"+o+' class="vs-repeat-after-content">"),I=null===R.size,S=R.scrollParent?"window"===R.scrollParent?K.element(G):Q.call(y,R.scrollParent):y,w=R.horizontal?"clientWidth":"clientHeight",a=R.horizontal?"offsetWidth":"offsetHeight",T=R.horizontal?"scrollWidth":"scrollHeight",A=R.horizontal?"scrollLeft":"scrollTop";if((g.vsRepeat.totalSize=0)===S.length)throw"Specified scroll parent selector did not match any element";if(g.vsRepeat.$scrollParent=S,g.vsRepeat.sizesCumulative=[],R.debug){K.element(document.head).append('\n ');var s="window"===R.scrollParent?K.element(document.body):S,i=K.element('
');i.css("position","window"===R.scrollParent?"fixed":"absolute"),s.append(i),g.$on("$destroy",function(){i.remove()})}var l,d,c,C,O,M,P,u,p=Z(S[0],w)||50;function f(){!z||z.length<1?(g[j]=[],x=0,g.vsRepeat.sizesCumulative=[0]):(x=z.length,R.size?v():h()),k()}function v(){var n=0t?q(e,t,n,a,o+1):q(e,t,a,r,o+1)}return[t>e[r]?r:n,t=R.hunkSize||0===g.vsRepeat.startIndex&&0!==C?u=!0:(Math.abs(g.vsRepeat.endIndex-O)>=R.hunkSize||g.vsRepeat.endIndex===x&&O!==x)&&(u=!0):u=g.vsRepeat.startIndex!==C||g.vsRepeat.endIndex!==O),u){var p;g[j]=z.slice(g.vsRepeat.startIndex,g.vsRepeat.endIndex),g.$emit("vsRepeatInnerCollectionUpdated",g.vsRepeat.startIndex,g.vsRepeat.endIndex,C,O),R.scrolledToEnd&&(p=z.length-R.scrolledToEndOffset,(g.vsRepeat.endIndex>=p&&Og.vsRepeat.startIndex&&g.$eval(R.scrolledToBeginning)),C=g.vsRepeat.startIndex,O=g.vsRepeat.endIndex;var f=g.vsRepeat.sizesCumulative[g.vsRepeat.startIndex]+R.offsetBefore,v=g.vsRepeat.sizesCumulative[g.vsRepeat.startIndex+g[j].length]+R.offsetBefore,h=g.vsRepeat.totalSize;$.css(_(f+"px")),b.css(_(h-v+"px"))}return u}l=$[0].style,d=b[0].style,c=R.horizontal?"height":"width",[l,d].forEach(function(e){e.setProperty("border","none","important"),e.setProperty("padding","0","important")}),l.setProperty(c,"100%"),d.setProperty(c,"100%"),e.vsRepeatOptions&&g.$watchCollection(e.vsRepeatOptions,function(e){var t=_extends({},R,e);JSON.stringify(t)!==JSON.stringify(R)&&(Object.assign(R,e),n(R),k())}),g.$watchCollection(J,function(){var e=0"),b=K.element("<"+o+' class="vs-repeat-after-content">"),I=null===R.size,S=R.scrollParent?"window"===R.scrollParent?K.element(G):Q.call(y,R.scrollParent):y,w=R.horizontal?"clientWidth":"clientHeight",a=R.horizontal?"offsetWidth":"offsetHeight",T=R.horizontal?"scrollWidth":"scrollHeight",A=R.horizontal?"scrollLeft":"scrollTop";if((g.vsRepeat.totalSize=0)===S.length)throw"Specified scroll parent selector did not match any element";if(g.vsRepeat.$scrollParent=S,g.vsRepeat.sizesCumulative=[],R.debug){K.element(document.head).append('\n ');var s="window"===R.scrollParent?K.element(document.body):S,i=K.element('
');i.css("position","window"===R.scrollParent?"fixed":"absolute"),s.append(i),g.$on("$destroy",function(){i.remove()})}var l,d,c,C,O,M,P,u,p=Z(S[0],w)||50;function f(){!z||z.length<1?(g[j]=[],x=0,g.vsRepeat.sizesCumulative=[0]):(x=z.length,R.size?v():h()),k()}function v(){var n=0t?q(e,t,n,a,o+1):q(e,t,a,r,o+1)}return[t>e[r]?r:n,t=R.hunkSize||0===g.vsRepeat.startIndex&&0!==C?u=!0:(Math.abs(g.vsRepeat.endIndex-O)>=R.hunkSize||g.vsRepeat.endIndex===x&&O!==x)&&(u=!0):u=g.vsRepeat.startIndex!==C||g.vsRepeat.endIndex!==O),u){var p;g[j]=z.slice(g.vsRepeat.startIndex,g.vsRepeat.endIndex),g.$emit("vsRepeatInnerCollectionUpdated",g.vsRepeat.startIndex,g.vsRepeat.endIndex,C,O),R.scrolledToEnd&&(p=z.length-R.scrolledToEndOffset,(g.vsRepeat.endIndex>=p&&Og.vsRepeat.startIndex&&g.$eval(R.scrolledToBeginning)),C=g.vsRepeat.startIndex,O=g.vsRepeat.endIndex;var f=g.vsRepeat.sizesCumulative[g.vsRepeat.startIndex]+R.offsetBefore,v=g.vsRepeat.sizesCumulative[g.vsRepeat.startIndex+g[j].length]+R.offsetBefore,h=g.vsRepeat.totalSize;$.css(_(f+"px")),b.css(_(h-v+"px"))}return u}l=$[0].style,d=b[0].style,c=R.horizontal?"height":"width",[l,d].forEach(function(e){e.setProperty("border","none","important"),e.setProperty("padding","0","important")}),l.setProperty(c,"100%"),d.setProperty(c,"100%"),e.vsRepeatOptions&&g.$watchCollection(e.vsRepeatOptions,function(e){var t=_extends({},R,e);JSON.stringify(t)!==JSON.stringify(R)&&(Object.assign(R,e),n(R),k())}),g.$watchCollection(J,function(){var e=0`; const vsRepeatModule = angular.module('vs-repeat', []).directive('vsRepeat', ['$compile', '$parse', function($compile, $parse) {