     @pages = new Array
     @on 'next-page', @nextPage
     @on 'prev-page', @prevPage
+    console.log @events
 
   start: =>
     super

      return '▼'

  nextPage: =>
    @currentPage @opts.currentPage + 1

  prevPage: =>
    @currentPage @opts.currentPage - 1

window.Ubret.Table = Table

  # Helpers
  paginate: =>
    @numRows = Math.floor((@opts.height - 50 )/ 30) # Assumes thead height of 50px and tbody height of 30px
    @numPages = Math.ceil(@opts.data.length / @numRows)

    sortedData = _.sortBy @opts.data, (d) => d[@sortKey]
