Use emit directly due to #766
Use emit directly due to #766

Tyriar/xterm.js,akalipetis/xterm.js,sourcelair/xterm.js,sourcelair/xterm.js,akalipetis/xterm.js,sourcelair/xterm.js,akalipetis/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,akalipetis/xterm.js,xtermjs/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js