Skip to content

Commit

Permalink
lint: restore es5 trailingComma, run on project
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed Oct 24, 2023
1 parent e65f4e6 commit b328418
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true
"singleQuote": true,
"trailingComma": "es5"
}
25 changes: 14 additions & 11 deletions src/components/object/blip.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,21 @@ AFRAME.registerComponent('blip', {
object3D.visible = true;
}

setTimeout(() => {
if (!this.el) return;
// Backup in case animation doesn't complete from bg tab or other disruption per known anime.js behavior
if (dir === 'out') {
try {
el.remove();
} catch {
/* empty */
setTimeout(
() => {
if (!this.el) return;
// Backup in case animation doesn't complete from bg tab or other disruption per known anime.js behavior
if (dir === 'out') {
try {
el.remove();
} catch {
/* empty */
}
}
}
this.cleanup(sceneEl);
}, data.duration + 2 * SCALE_IN_DURATION + 500); // Full animation + 500ms buffer
this.cleanup(sceneEl);
},
data.duration + 2 * SCALE_IN_DURATION + 500
); // Full animation + 500ms buffer

this.time = 0; // "enable" time tracking/animation

Expand Down

0 comments on commit b328418

Please sign in to comment.