From 6e53bce2cf78dced221006dc3cb790313276be0d Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Sun, 8 Apr 2018 14:34:32 +0200 Subject: [PATCH] Remove jquery from SelectionManager.js --- src/js/selection/SelectionManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/selection/SelectionManager.js b/src/js/selection/SelectionManager.js index aa911fa9..8479f2e4 100644 --- a/src/js/selection/SelectionManager.js +++ b/src/js/selection/SelectionManager.js @@ -14,9 +14,9 @@ }; ns.SelectionManager.prototype.init = function () { - $.subscribe(Events.SELECTION_CREATED, $.proxy(this.onSelectionCreated_, this)); - $.subscribe(Events.SELECTION_DISMISSED, $.proxy(this.onSelectionDismissed_, this)); - $.subscribe(Events.SELECTION_MOVE_REQUEST, $.proxy(this.onSelectionMoved_, this)); + $.subscribe(Events.SELECTION_CREATED, this.onSelectionCreated_.bind(this)); + $.subscribe(Events.SELECTION_DISMISSED, this.onSelectionDismissed_.bind(this)); + $.subscribe(Events.SELECTION_MOVE_REQUEST, this.onSelectionMoved_.bind(this)); $.subscribe(Events.CLIPBOARD_COPY, this.copy.bind(this)); $.subscribe(Events.CLIPBOARD_CUT, this.copy.bind(this)); $.subscribe(Events.CLIPBOARD_PASTE, this.paste.bind(this)); @@ -25,7 +25,7 @@ pskl.app.shortcutService.registerShortcut(shortcuts.SELECTION.DELETE, this.onDeleteShortcut_.bind(this)); pskl.app.shortcutService.registerShortcut(shortcuts.SELECTION.COMMIT, this.commit.bind(this)); - $.subscribe(Events.TOOL_SELECTED, $.proxy(this.onToolSelected_, this)); + $.subscribe(Events.TOOL_SELECTED, this.onToolSelected_.bind(this)); }; /**