Skip to content

Commit f9f641a

Browse files
author
Lauren McCarthy
committed
fixing removeCue closes #1853
1 parent 6ba058c commit f9f641a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/addons/p5.dom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,9 +2074,9 @@
20742074
*/
20752075
p5.MediaElement.prototype.removeCue = function(id) {
20762076
for (var i = 0; i < this._cues.length; i++) {
2077-
var cue = this._cues[i];
2078-
if (cue.id === id) {
2079-
this.cues.splice(i, 1);
2077+
if (this._cues[i] === id) {
2078+
console.log(id)
2079+
this._cues.splice(i, 1);
20802080
}
20812081
}
20822082

0 commit comments

Comments
 (0)