From 000cff292ec8a9f0c9303bb756d143410063468f Mon Sep 17 00:00:00 2001 From: Idrian Date: Wed, 23 Aug 2017 21:14:13 +0200 Subject: [PATCH] #9 #7 fixed chrome eventlistener error --- build/RuleApplyer.ts | 6 ++++-- build/main.ts | 3 ++- build/voxc.js | 10 +++++++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/build/RuleApplyer.ts b/build/RuleApplyer.ts index bba6e65..4ac0d91 100644 --- a/build/RuleApplyer.ts +++ b/build/RuleApplyer.ts @@ -269,9 +269,10 @@ class RuleInterpreter var shapeFound : boolean = false; if(this.ruleFile.Rules[i].Shape != null) { + var thisShape = this.ruleFile.Rules[i].Shape.toLowerCase(); for(var g=0;g { var objUpload = document.getElementById("objfile"); var converterOne; var useME = true; - objUpload.addEventListener("input", function () { + objUpload.addEventListener("change", function () { + console.log("I am here"); var OBJFile = objUpload.files[0]; useME = false; converterOne = new ObjToArray_1.fileReader(OBJFile, doRest, [demo_canvas, converterOne_canvas, ruleApplyer, arrayToMesh]);