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

Pass default opts.

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