Proper evaluation of the optionsValues in the Backgrid Select2Cell.

This commit is contained in:
Harshal Dhumal 2016-06-03 15:20:54 +05:30 committed by Ashesh Vashi
parent c3e2f5f212
commit dea4b8ca31

View File

@ -442,9 +442,9 @@
model = this.model, column = this.column, model = this.model, column = this.column,
editable = Backgrid.callByNeed(col.editable, column, model), editable = Backgrid.callByNeed(col.editable, column, model),
optionValues = _.clone(this.optionValues || optionValues = _.clone(this.optionValues ||
_.isFunction(this.column.get('options')) ? (_.isFunction(this.column.get('options')) ?
(this.column.get('options'))(this) : (this.column.get('options'))(this) :
this.column.get('options')); this.column.get('options')));
this.undelegateEvents(); this.undelegateEvents();