]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
fixed typo and reference in attach addon
authorTDaglis <ath.daglis@gmail.com>
Thu, 22 Oct 2015 08:33:56 +0000 (11:33 +0300)
committerTDaglis <ath.daglis@gmail.com>
Thu, 22 Oct 2015 08:33:56 +0000 (11:33 +0300)
also bumped version to 0.31

addons/attach/attach.js
bower.json

index 5b3b4dc2b864382baa8d10a7f11da9ef893b8369..e2ce145f1521fcec3b40a66a170ed038cc476c9c 100644 (file)
@@ -40,7 +40,7 @@
      *                             should happen instantly or at a maximum
      *                             frequency of 1 rendering per 10ms.
      */
-    exports.attach = function (term, socket, biderectional, buffered) {
+    exports.attach = function (term, socket, bidirectional, buffered) {
         bidirectional = (typeof bidirectional == 'undefined') ? true : bidirectional;
         term.socket = socket;
 
@@ -75,7 +75,7 @@
         socket.addEventListener('message', term._getMessage);
 
         if (bidirectional) {
-            this.on('data', term._sendData);
+            term.on('data', term._sendData);
         }
 
         socket.addEventListener('close', term.detach.bind(term, socket));
     };
 
     return exports;
-});
\ No newline at end of file
+});
index 630ac148217daf82071af8361579c7bfc35c17bd..e0795c9a3936b723885eac2bd6e8b9af97128005 100644 (file)
@@ -1,5 +1,5 @@
 {
   "name": "xterm.js",
-  "version": "0.30",
+  "version": "0.31",
   "ignore": ["demo", "test", ".gitignore"]
 }