Commit 7beb9f34 authored by Bryce Johnson's avatar Bryce Johnson

Pass default opts.

parent 5bc3b7be
((global) => {
class Profile {
constructor({ form = $('.edit-user') }) {
constructor({ form = $('.edit-user') } = {}) {
this.onSubmitForm = this.onSubmitForm.bind(this);
this.form = form;
this.bindEvents();
......
......@@ -15,7 +15,8 @@
autocompletePath = optsEl.data('autocomplete-path'),
projectId = (optsEl.data('autocomplete-project-id') || ''),
projectRef = (optsEl.data('autocomplete-project-ref') || '')
}) {
} = {}) {
this.bindEventContext();
this.wrap = wrap;
this.optsEl = optsEl;
......
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