Export static methods wherever possible

This commit is contained in:
Paris Kasidiaris
2017-12-12 08:46:06 +00:00
parent 052dc15d55
commit d81e304ce7
6 changed files with 51 additions and 60 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
* row and truncate its width with the current number of columns).
*/
function proposeGeometry(term) {
export function proposeGeometry(term) {
if (!term.element.parentElement) {
return null;
}
@@ -33,7 +33,7 @@ function proposeGeometry(term) {
return geometry;
};
function fit(term) {
export function fit(term) {
// Wrap fit in a setTimeout as charMeasure needs time to get initialized
// after calling Terminal.open
setTimeout(function () {