1 | function addListener(e,l) {
|
2 | if (window.addEventListener) {
|
3 | window.addEventListener(e,l,false);
|
4 | } else {
|
5 | window.attachEvent('on' + e, l);
|
6 | }
|
7 | };
|
8 |
|
9 | addListener(
|
10 | 'DOMContentLoaded',
|
11 | function() {
|
12 | document.body.parentNode.$data = {};
|
13 | // Attach controllers.
|
14 | {{INIT_JS}}
|
15 | }
|
16 | );
|