js: Use inside variant of IIFE wrappers.

Prettier would do this anyway, but it’s separated out for a more
reviewable diff.  Generated by ESLint.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-16 13:35:58 -07:00
committed by Tim Abbott
parent 6924d501bc
commit a20c12366f
36 changed files with 118 additions and 118 deletions

View File

@@ -144,12 +144,12 @@ exports.watch_manual_resize = function (element) {
document.body.addEventListener("mouseup", body_handler);
return [box_handler, body_handler];
}((height) => {
})((height) => {
// This callback disables autosize on the textarea. It
// will be re-enabled when this component is next opened.
autosize.destroy($(element))
.height(height + "px");
}));
});
};
exports.resize_bottom_whitespace = function (h) {