diff --git a/.prettierrc b/.prettierrc index ca0c14e7c..08dcfde80 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "printWidth": 120, "tabWidth": 4, - "singleQuote": true + "singleQuote": true, + "trailingComma": "es5" } diff --git a/src/components/object/blip.js b/src/components/object/blip.js index cee9ab694..053328349 100644 --- a/src/components/object/blip.js +++ b/src/components/object/blip.js @@ -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