         checkWhenEnabled = false
         handler()
 
+    lineHeight = attrs.infiniteScrollLineHeight if attrs.infiniteScrollLineHeight
+
     scope.$watch 'infiniteScrollDisabled', handleInfiniteScrollDisabled
     # If I don't explicitly call the handler here, tests fail. Don't know why yet.
     handleInfiniteScrollDisabled scope.infiniteScrollDisabled

    infiniteScrollDisabled: '='
    infiniteScrollUseDocumentBottom: '=',
    infiniteScrollListenForEvent: '@'

  link: (scope, elem, attrs) ->
    windowElement = angular.element($window)

        checkWhenEnabled = false
        handler()

    lineHeight = attrs.infiniteScrollLineHeight if attrs.infiniteScrollLineHeight

    scope.$watch 'infiniteScrollDisabled', handleInfiniteScrollDisabled
    # If I don't explicitly call the handler here, tests fail. Don't know why yet.
    handleInfiniteScrollDisabled scope.infiniteScrollDisabled
