Fixed paste

Bumped bower version to 0.4
This commit is contained in:
paris
2014-04-09 15:37:45 +00:00
parent 6d152ed766
commit 4f2cadd6c9
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "xterm.js",
"version": "0.3",
"version": "0.4",
"ignore": ["demo", "docs", "test", ".gitignore"]
}
-1
View File
@@ -1 +0,0 @@
/mnt/project/
+1 -2
View File
@@ -416,10 +416,9 @@ Terminal.prototype.initGlobal = function() {
*/
Terminal.bindPaste = function(term) {
on([term.textarea, term.element], 'paste', function(ev) {
ev.stopPropagation();
ev.stopPropagation[();
if (ev.clipboardData) {
var text = ev.clipboardData.getData('text/plain');
term.write(text);
term.handler(text);
}
term.textarea.value = '';