Migration of emby-checkbox, textarea, toggle to ES6 Modules

This commit is contained in:
Cameron 2020-07-08 16:32:57 +01:00
parent 1f8ce6e6f4
commit 69507a0bd9
4 changed files with 26 additions and 9 deletions

View file

@ -1,5 +1,10 @@
define(['layoutManager', 'browser', 'css!./emby-textarea', 'registerElement', 'emby-input'], function (layoutManager, browser) {
'use strict';
import layoutManager from 'layoutManager';
import browser from 'browser';
import 'css!./emby-textarea';
import 'registerElement';
import 'emby-input';
/* eslint-disable indent */
function autoGrow(textarea, maxLines) {
var self = this;
@ -136,4 +141,5 @@ define(['layoutManager', 'browser', 'css!./emby-textarea', 'registerElement', 'e
prototype: EmbyTextAreaPrototype,
extends: 'textarea'
});
});
/* eslint-enable indent */