`_.size()` can run on an object, `.length` cannot.

This commit is contained in:
George Stephanis 2015-08-12 15:03:50 -04:00
parent a587f9c5a9
commit 6e169e313f
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@
page : data.page,
render : function() {
var rates = this.model.getFilteredRates(),
qty_rates = rates.length,
qty_rates = _.size( rates ),
qty_pages = Math.ceil( qty_rates / this.per_page ),
first_index = this.per_page * ( this.page - 1),
last_index = this.per_page * this.page,