Skip to content

Commit b1cae5e

Browse files
committed
renamed reload - reloadImpl
1 parent 12edb36 commit b1cae5e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ui-scroll.coffee

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ angular.module('ui.scroll', [])
245245
ridActual++
246246
pending = []
247247

248-
reload = ->
248+
reloadImpl = ->
249249
dismissPendingRequests()
250250
first = 1
251251
next = 1
@@ -257,7 +257,6 @@ angular.module('ui.scroll', [])
257257
adjustBuffer ridActual
258258

259259
shouldLoadBottom = ->
260-
#log "bottom pos #{viewport.bottomDataPos()} < bottom visible #{bottomVisiblePos()} + padding #{bufferPadding()} "
261260
!eof && viewport.bottomDataPos() < viewport.bottomVisiblePos() + bufferPadding()
262261

263262
clipBottom = ->
@@ -286,7 +285,6 @@ angular.module('ui.scroll', [])
286285
#log 'clipped off bottom ' + overage + ' bottom padding ' + viewport.bottomPadding()
287286

288287
shouldLoadTop = ->
289-
#log "top pos #{viewport.topDataPos()} > top visible #{topVisiblePos()} - padding #{bufferPadding()}"
290288
!bof && (viewport.topDataPos() > viewport.topVisiblePos() - bufferPadding())
291289

292290
clipTop = ->
@@ -309,7 +307,6 @@ angular.module('ui.scroll', [])
309307
viewport.topPadding(viewport.topPadding() + topHeight)
310308
buffer.remove(0, overage)
311309
first += overage
312-
#log 'clipped off top ' + overage + ' top padding ' + builder.topPadding()
313310

314311
enqueueFetch = (rid, direction)->
315312
if !adapter.isLoading
@@ -500,7 +497,7 @@ angular.module('ui.scroll', [])
500497
viewport.bind 'scroll', resizeAndScrollHandler
501498
viewport.bind 'mousewheel', wheelHandler
502499

503-
$scope.$watch datasource.revision, reload
500+
$scope.$watch datasource.revision, reloadImpl
504501

505502
$scope.$on '$destroy', ->
506503
# clear the buffer. It is necessary to remove the elements and $destroy the scopes
@@ -514,7 +511,7 @@ angular.module('ui.scroll', [])
514511

515512
adapter = {}
516513
adapter.isLoading = false
517-
adapter.reload = reload
514+
adapter.reload = reloadImpl
518515

519516
applyUpdate = (wrapper, newItems) ->
520517
if angular.isArray newItems

0 commit comments

Comments
 (0)