const, formatting

This commit is contained in:
Dannon Baker
2019-06-04 11:47:21 -04:00
parent b732950c70
commit 8edffb118a
@@ -473,7 +473,7 @@ var MultiPanelColumns = Backbone.View.extend(baseMVC.LoggableMixin).extend({
/** create a column and its panel and set up any listeners to them */
createColumn: function createColumn(history, options) {
let Galaxy = getGalaxyInstance();
const Galaxy = getGalaxyInstance();
// options passed can be re-used, so extend them before adding the model to prevent pollution for the next
options = _.extend({}, options, {
model: history,
@@ -836,17 +836,17 @@ var MultiPanelColumns = Backbone.View.extend(baseMVC.LoggableMixin).extend({
setUpBehaviors: function() {
this._moreOptionsPopover();
const searchHistories = searchFor => {
const multipanel = this;
this.historySearch = searchFor;
this.filters = [
function() {
// This is intentionally a function where 'this' gets
// bound, applying the filter to the model of the
// caller.
return this.model.matchesAll(multipanel.historySearch);
}
];
this.renderColumns(0);
const multipanel = this;
this.historySearch = searchFor;
this.filters = [
function() {
// This is intentionally a function where 'this' gets
// bound, applying the filter to the model of the
// caller.
return this.model.matchesAll(multipanel.historySearch);
}
];
this.renderColumns(0);
};
// input to search histories
this.$("#search-histories").searchInput({