Skip to content

Commit

Permalink
Merge pull request #173 from DrugoLebowski/master
Browse files Browse the repository at this point in the history
Fix dispose option.
  • Loading branch information
onokumus authored Oct 5, 2018
2 parents 6837d3e + b786e92 commit c545bd4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ const MetisMenu = (($) => { // eslint-disable-line no-shadow
...typeof config === 'object' && config ? config : {},
};

if (!data && /dispose/.test(config)) {
this.dispose();
}

if (!data) {
data = new MetisMenu(this, conf);
$this.data(DATA_KEY, data);
Expand Down

0 comments on commit c545bd4

Please sign in to comment.