From 6878ba4f965bcfaf0b4e9308085bbeb8fd9964be Mon Sep 17 00:00:00 2001 From: Antoine Boulanger Date: Thu, 14 Jul 2016 14:23:46 -0400 Subject: [PATCH] Fix IE JS bug if el attribute is null --- assets/scripts/App.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/scripts/App.js b/assets/scripts/App.js index 33165eb..bb3795e 100644 --- a/assets/scripts/App.js +++ b/assets/scripts/App.js @@ -80,6 +80,10 @@ class App { var data = {}; for (let i in attributes) { + if (!attributes[i]) { + continue; + } + // Attributes name (ex: data-module) let name = attributes[i].name;