mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Use less jQuery, more native
This commit is contained in:
parent
24cb874c87
commit
bdb36ec128
35 changed files with 492 additions and 779 deletions
|
|
@ -106,7 +106,6 @@ class HtmlEditor {
|
|||
this.onModeChange = onModeChange;
|
||||
|
||||
this.element = element;
|
||||
this.$element = jQuery(element);
|
||||
|
||||
this.resize = this.resizeEditor.throttle(100);
|
||||
|
||||
|
|
@ -414,7 +413,7 @@ class HtmlEditor {
|
|||
resizeEditor() {
|
||||
if (this.editor && this.__resizable) {
|
||||
try {
|
||||
this.editor.resize(this.$element.width(), this.$element.innerHeight());
|
||||
this.editor.resize(this.element.clientWidth, this.element.clientHeight);
|
||||
} catch (e) {} // eslint-disable-line no-empty
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue