`_.size()` can run on an object, `.length` cannot.
This commit is contained in:
parent
a587f9c5a9
commit
6e169e313f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue