Skip to content

Commit

Permalink
Make wand plugin cleanup after itself.
Browse files Browse the repository at this point in the history
If you disabled the wand plugin, the currently outlined element would
stay outlined. This change fixes that.
  • Loading branch information
itsjohncs committed Jul 31, 2015
1 parent 3ac160c commit fbcd665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/a11y-text-wand/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class A11yTextWand extends Plugin {
}

cleanup() {
$(".tota11y-outlined").removeClass("tota11y-outlined");
$(document).off("mousemove.wand");
}
}
Expand Down

0 comments on commit fbcd665

Please sign in to comment.