From d36da4205495d1955e3e21207ebbb2ef2bf2c65b Mon Sep 17 00:00:00 2001
From: netpro2k <netpro2k@gmail.com>
Date: Mon, 2 Apr 2018 18:17:29 -0700
Subject: [PATCH] Noticed typo in gltf-model-plus

---
 src/components/gltf-model-plus.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js
index f1993414f..49c891ebb 100644
--- a/src/components/gltf-model-plus.js
+++ b/src/components/gltf-model-plus.js
@@ -270,7 +270,7 @@ AFRAME.registerComponent("gltf-model-plus", {
       this.el.emit("model-loaded", { format: "gltf", model: this.model });
     } catch (e) {
       console.error("Failed to load glTF model", e.message, this);
-      this.emit("model-error", { format: "gltf", src });
+      this.el.emit("model-error", { format: "gltf", src });
     }
   },
 
-- 
GitLab