                 else console.log "Unknown paginator direction: #{ newPage }"
 
         requestChangePage: (event) ->
-            @changePageDebounce event.target.attributes['data-page'].value
+            @_changePage $(event.target).data('page')
                     
 
     { Paginator }

            'click [data-page=last]': 'requestChangePage'

        initialize: ->
            @changePageDebounce = c._.debounce(@changePage, @debounceDelay)

        onRender: ->
            if not @model.pageIsLoading()

    class Paginator extends c.Marionette.ItemView
        template: templates.links

        requestDelay: 250 # In milliseconds

        className: 'paginator'

