         compile: (element, attr, linker) ->
           ($scope, $element, $attr, controller) ->
 
-            console.log controller
-
             match = $attr.ngScroll.match /^\s*(\w+)\s+in\s+(\w+)\s*$/
-
             if !match
               throw Error "Expected ngScroll in form of '_item_ in _datasource_' but got '#{$attr.ngScroll}'"
 

                    console.log "clipped off bottom #{overage} bottom padding #{bottomHeight}"

                shouldLoadTop = ->
                  result = first > 1 &&
                    buffer[0].element.offset().top - canvas.offset().top > viewport.scrollTop() - bufferPadding()
                  console.log 'load top ' + result
                  result

                clipTop = ->
                  # clip off the invisible items form the top

                  #(buffer.length == 0 || scope.defaultText(buffer[buffer.length-1]).toLowerCase() <= globals.selectedText.toLowerCase()) ||
                  # and we have enough for the scrollbar to show up
                  item = buffer[buffer.length-1]
                  if item
                    !eof && item.element.offset().top - canvas.offset().top + item.element.outerHeight(true) <
                      viewport.scrollTop() + viewport.height() + bufferPadding()
                  else
                    true

                clipBottom = ->
                    # clip off the invisible items form the bottom
