Skip to content

Commit

Permalink
clear dataset ID when removing controller
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Dec 7, 2016
1 parent 976210a commit 0579008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ chrome.extension.sendMessage({}, function(response) {
let ctrl = document.querySelector(`div[data-vscid="${id}"]`)
if (ctrl) {
node.classList.remove('vsc-initialized');
delete node.dataset['vscid'];
ctrl.remove();
}
}
Expand Down

0 comments on commit 0579008

Please sign in to comment.