Caching variable

This commit is contained in:
Djamil Legato
2016-03-09 10:34:55 -08:00
parent 537daf3e0f
commit dfaf43a5ac
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

File diff suppressed because one or more lines are too long