Extend Xterm prototype only when Xterm is a function

Add-ons attempted to extend the `Xterm` prototype no matter what. This was an issue when importing add-ons through CommonJS, where `Xterm` is not available in the global scope.
This commit is contained in:
Paris
2016-05-03 12:36:21 +03:00
parent bd2158613d
commit fff56eea1b
8 changed files with 423 additions and 318 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"name": "xterm.attach",
"main": "attach.js",
"private": true
}