mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Fix IE JS bug if el attribute is null
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user