Skip to content

Commit 280f94c

Browse files
authored
Remove intermediate variable
1 parent bdb5726 commit 280f94c

File tree

1 file changed

+1
-2
lines changed
  • media/web-dictaphone/scripts

1 file changed

+1
-2
lines changed

media/web-dictaphone/scripts/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ if (navigator.mediaDevices.getUserMedia) {
8484
console.log("recorder stopped");
8585

8686
deleteButton.onclick = function(e) {
87-
let evtTgt = e.target;
88-
evtTgt.closest(".clip").remove();
87+
e.target.closest(".clip").remove();
8988
}
9089

9190
clipLabel.onclick = function() {

0 commit comments

Comments
 (0)