| 1 | window.MyPaginatedView = Backbone.View.extend({ |
| 2 | render: function() { |
| 3 | this.$el.append('<div class="the-number"></div>') |
| 4 | }, |
| 5 | |
| 6 | renderCurrentPage: function(page) { |
| 7 | this.$('.the-number').text(page + 1); |
| 8 | }, |
| 9 | |
| 10 | numberOfPages: function() { |
| 11 | return 10; |
| 12 | } |
| 13 | }) |
| 14 | |
| 15 | Cocktail.mixin(window.MyPaginatedView, window.MyMixins.PaginateMixin); |