Skip to content

Commit

Permalink
Moved the empty variable declarations to the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorik Kraaikamp committed Jul 17, 2017
1 parent 148be23 commit 22aba6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dual-listbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ const SELECTED_MODIFIER = 'dual-listbox__item--selected';
class DualListbox {
constructor(selector, options={}) {
this.setDefaults();
this.selected = [];
this.available = [];

if (this.isDomElement(selector)) {
this.select = selector;
} else {
this.select = document.querySelector(selector);
}

this.selected = [];
this.available = [];

this._initOptions(options);
this._initReusableElements();
this._splitSelectOptions(this.select);
Expand Down

0 comments on commit 22aba6c

Please sign in to comment.