Skip to content

Commit

Permalink
JDF-698 Upgraded Backbone.js to 1.1.2.
Browse files Browse the repository at this point in the history
Also fixed an issue involving backward compatibility.
With Backbone.js 1.1, the options argument passed to a View during
construction is not attached as this.options automatically.

One of the Backbone Views in TicketMonster is not modified to
ensure that the options argument during construction is stored for
later use.
  • Loading branch information
VineetReynolds committed May 5, 2014
1 parent 618b1b3 commit 458d24d
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 179 deletions.
Expand Up @@ -11,6 +11,10 @@ define([
"click span[data-tm-role='delete']":"deleteBooking",
"click a[data-tm-role='page']":"refreshPage"
},
initialize: function (options) {
// Record the options provided to the Backbone View during initialization.
this.options = options || {};
},
render:function () {
var paginator = {};
paginator.totalPageCount = Math.floor(this.options.count/this.options.pageSize)
Expand Down

0 comments on commit 458d24d

Please sign in to comment.