 
   checkBoundaries: (pages=__bookPages)->
     if BookView.navigateNewPages
-      @getNewPages (pages)=>
+      @getNewPages (newPages)=>
         @toggleButton "prev", @newPagePointer is 0
-        @toggleButton "next", @newPagePointer is pages.length - 1
+        @toggleButton "next", @newPagePointer is newPages.length - 1
     else
       @toggleButton "prev", @currentIndex is 0
       @toggleButton "next", @currentIndex is pages.length - 1

      @right.unsetClass "out"
      @utils.wait 400, =>
        @setClass "in"

    # destroy @pointer
    if @pointer then @destroyPointer()


    return if @currentIndex - 1 < 0
    @fillPage @currentIndex - 1

  fillNextPage:->
    if BookView.navigateNewPages
