Skip to content

Commit

Permalink
Update ScrollingTextBubble.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Eaielectronic authored Nov 5, 2024
1 parent bdb3d5d commit b2a48bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extensions/Eaielectronic/ScrollingTextBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// By: Eaielectronic
// By: SERPENT1867 <https://scratch.mit.edu/users/serpent1867/>
// License: MPL-2.0
(function(Scratch) {
'use strict';
(function(Scratch) {
'use strict';

Check failure on line 10 in extensions/Eaielectronic/ScrollingTextBubble.js

View workflow job for this annotation

GitHub Actions / lint

Unnecessary 'use strict' directive

Expand Down Expand Up @@ -191,7 +193,7 @@

hideAllTextBubbles() {
for (const spriteId in this.bubbles) {
if (this.bubbles.hasOwnProperty(spriteId)) {
if (Object.prototype.hasOwnProperty.call(this.bubbles, spriteId)) {
clearInterval(this.bubbles[spriteId].intervalId);
this.bubbles[spriteId].bubbleDiv.remove();
delete this.bubbles[spriteId];
Expand Down Expand Up @@ -274,3 +276,5 @@

Scratch.extensions.register(new ScrollingTextBubble());
})(Scratch);

})(Scratch);

0 comments on commit b2a48bc

Please sign in to comment.