Skip to content

Commit

Permalink
Merge pull request #1 from DrugoLebowski/DrugoLebowski-patch-1
Browse files Browse the repository at this point in the history
Fix dispose option.
  • Loading branch information
DrugoLebowski authored Oct 2, 2018
2 parents 6837d3e + 31dc584 commit 3c45b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const MetisMenu = (($) => { // eslint-disable-line no-shadow
...typeof config === 'object' && config ? config : {},
};

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

Expand Down

0 comments on commit 3c45b5a

Please sign in to comment.