Inline onSelectItem of NamespaceSelect

This commit is contained in:
Winnie Hellmann 2017-10-26 13:04:42 +02:00
parent 06376254b0
commit fcc82ab601
1 changed files with 4 additions and 7 deletions

View File

@ -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
});
}
onSelectItem(options) {
clicked(options) {
const { e } = options;
return e.preventDefault();
},
});
}
}