Skip to content

Commit f284f7f

Browse files
committed
#8 JS asset doesn't work in IE
- using `Event` constructor instead of `CustomEvent` constructor for IE 11 compability
1 parent 5314956 commit f284f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/async.nette.ajax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
$.nette.ajax({
1818
url: $this.data('asyncLink') || $this.attr('href'),
1919
off: ['history', 'unique']
20-
}, $this, new CustomEvent('asyncLoad'));
20+
}, $this, new Event('asyncLoad'));
2121
});
2222
}
2323
});

0 commit comments

Comments
 (0)