Commit fcc82ab6 authored by Winnie Hellmann's avatar Winnie Hellmann

Inline onSelectItem of NamespaceSelect

parent 06376254
......@@ -3,7 +3,6 @@ import Api from './api';
export default class NamespaceSelect {
constructor(opts) {
this.onSelectItem = this.onSelectItem.bind(this);
var fieldName, showAny;
this.dropdown = $(opts.dropdown);
showAny = true;
......@@ -51,12 +50,10 @@ export default class NamespaceSelect {
}
},
renderRow: this.renderRow,
clicked: this.onSelectItem
clicked(options) {
const { e } = options;
return e.preventDefault();
},
});
}
onSelectItem(options) {
const { e } = options;
return e.preventDefault();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment