Fixed IE issues with classList.add

`classList.add` in IE does not take more than one parameter and this would not work. Split in 3 statements to fix it.
This commit is contained in:
Antonis Kalipetis
2015-08-25 14:40:00 +03:00
parent 2a9de5e5c0
commit a523803d37
+3 -1
View File
@@ -532,7 +532,9 @@
* Create main element container
*/
this.element = this.document.createElement('div');
this.element.classList.add('terminal', 'xterm', 'xterm-theme-' + this.theme);
this.element.classList.add('terminal');
this.element.classList.add('xterm');
this.element.classList.add('xterm-theme-' + this.theme);
this.element.setAttribute('tabindex', 0);
/*