mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-13 08:46:04 +01:00
Caching variable
This commit is contained in:
@@ -63,10 +63,10 @@ export default class EditorField {
|
|||||||
|
|
||||||
$('[data-grav-editor]').each((index, editor) => this.addEditor(editor));
|
$('[data-grav-editor]').each((index, editor) => this.addEditor(editor));
|
||||||
|
|
||||||
$(() => { $('body').trigger('grav-editor-ready'); });
|
$(() => { body.trigger('grav-editor-ready'); });
|
||||||
body.on('mutation._grav', this._onAddedNodes.bind(this));
|
body.on('mutation._grav', this._onAddedNodes.bind(this));
|
||||||
|
|
||||||
body.on('mouseup._grav', (e) => {
|
body.on('mouseup._grav', () => {
|
||||||
if (!IS_MOUSEDOWN) { return true; }
|
if (!IS_MOUSEDOWN) { return true; }
|
||||||
body.unbind('mousemove._grav');
|
body.unbind('mousemove._grav');
|
||||||
IS_MOUSEDOWN = false;
|
IS_MOUSEDOWN = false;
|
||||||
|
|||||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user