Fix webpack task in Gulp and fit add-on

This commit is contained in:
Paris Kasidiaris
2017-12-16 11:29:12 +02:00
parent 80450450e9
commit da604ff69c
5 changed files with 15 additions and 6 deletions
+7 -2
View File
@@ -50,6 +50,11 @@ export function fit(term) {
};
export function apply(terminalConstructor) {
terminalConstructor.prototype.proposeGeometry = proposeGeometry.bind(this, this);
terminalConstructor.prototype.fit = fit.bind(this, this);
terminalConstructor.prototype.proposeGeometry = function() {
return proposeGeometry(this);
}
terminalConstructor.prototype.fit = function() {
return fit(this);
}
}
+3 -1
View File
@@ -27,6 +27,8 @@
* via `detach()` and a re-`attach()`.)
*/
let Zmodem;
export function zmodemAttach(term, ws, opts) {
if (!opts) opts = {};
@@ -81,7 +83,7 @@ export function zmodemAttach(term, ws, opts) {
}
export function apply(terminalConstructor) {
let Zmodem = (typeof window == 'object') ? (<any>window).ZModem : {Browser: null}; // Nullify browser for tests
Zmodem = (typeof window == 'object') ? (<any>window).ZModem : {Browser: null}; // Nullify browser for tests
terminalConstructor.prototype.zmodemAttach = zmodemAttach.bind(this, this);
terminalConstructor.prototype.zmodemBrowser = Zmodem.Browser