Migrated entity selector out of angular

This commit is contained in:
Dan Brown
2017-08-27 14:31:34 +01:00
parent cfc05c1b22
commit baea92b206
10 changed files with 198 additions and 161 deletions

View File

@ -6,7 +6,7 @@ class Notification {
this.type = elem.getAttribute('notification');
this.textElem = elem.querySelector('span');
this.autohide = this.elem.hasAttribute('data-autohide');
window.Events.listen(this.type, text => {
window.$events.listen(this.type, text => {
this.show(text);
});
elem.addEventListener('click', this.hide.bind(this));