summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2017-06-28 15:12:40 -0400
committerBryce Johnson <bryce@gitlab.com>2017-06-30 15:53:19 -0400
commitc69331cc6680b1328033bd13188c3b3c0ab7c59a (patch)
tree5525cfe1f8cbf489c9816267961ed86c182e340b
parenta704f9e5803e833d00f3abcf1d68eac9b9701653 (diff)
downloadgitlab-ce-autosize-js-perf.tar.gz
Remove unneeded autosize js config.autosize-js-perf
-rw-r--r--app/assets/javascripts/behaviors/autosize.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/assets/javascripts/behaviors/autosize.js b/app/assets/javascripts/behaviors/autosize.js
index 3bea460dcc6..30dffecf89f 100644
--- a/app/assets/javascripts/behaviors/autosize.js
+++ b/app/assets/javascripts/behaviors/autosize.js
@@ -3,21 +3,5 @@ import autosize from 'vendor/autosize';
$(() => {
const $fields = $('.js-autosize');
- $fields.on('autosize:resized', function resized() {
- const $field = $(this);
- $field.data('height', $field.outerHeight());
- });
-
- $fields.on('resize.autosize', function resize() {
- const $field = $(this);
- if ($field.data('height') !== $field.outerHeight()) {
- $field.data('height', $field.outerHeight());
- autosize.destroy($field);
- $field.css('max-height', window.outerHeight);
- }
- });
-
- autosize($fields);
autosize.update($fields);
- $fields.css('resize', 'vertical');
});