Simplify fit addon
This commit is contained in:
@@ -50,11 +50,6 @@ export function fit(term) {
|
||||
};
|
||||
|
||||
export function apply(terminalConstructor) {
|
||||
terminalConstructor.prototype.proposeGeometry = function () {
|
||||
return proposeGeometry(this);
|
||||
};
|
||||
|
||||
terminalConstructor.prototype.fit = function () {
|
||||
return fit(this);
|
||||
};
|
||||
terminalConstructor.prototype.proposeGeometry = proposeGeometry.bind(this, this);
|
||||
terminalConstructor.prototype.fit = fit.bind(this, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user