diff --git a/bootstrap/js/views/winelist.js b/bootstrap/js/views/winelist.js index 8fba1bc..d6f8ae5 100644 --- a/bootstrap/js/views/winelist.js +++ b/bootstrap/js/views/winelist.js @@ -4,10 +4,10 @@ window.WineListView = Backbone.View.extend({ this.render(); }, - render: function () { + render: function (options) { var wines = this.model.models; var len = wines.length; - var startPos = (this.options.page - 1) * 8; + var startPos = (options.page - 1) * 8; var endPos = Math.min(startPos + 8, len); $(this.el).html('