           else
             []
 
-
       $scope.goToPage = (page) ->
         page = Math.max(0, page)
         page = Math.min($scope.numberOfPages - 1, page)

    return

  PaginationSetup = (attributes) ->
    @repeatString = "item in #{attributes.pagination}.list | limitTo:fromPage() | limitTo:toPage() | orderBy:predicate:descending"

    @compile = (element, attributes, transclude) ->
      tbody = setupTr element, @repeatString

        tds = element.find("td")
        tdString = ""
        for td in tds
          tdString += "<td>&nbsp;</td>"

        fillerTr = angular.element("<tr>#{tdString}</tr>")
        fillerTr.attr("ng-repeat", "item in #{attributes.pagination}.getFillerArray() ")
