From 60a03370ec61dcffa421ec1bddf71fca5108ebc0 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Tue, 29 Nov 2016 17:04:33 -0800 Subject: [PATCH] cleanup --- src/plugins/core.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/plugins/core.js b/src/plugins/core.js index 33a331509..50cd08abc 100644 --- a/src/plugins/core.js +++ b/src/plugins/core.js @@ -673,15 +673,11 @@ function Plugin(options = {}) { */ function onSelect(e, data, state) { - const { selection } = data - - debug('onSelect', { data, selection: selection.toJS() }) + debug('onSelect', { data }) return state .transform() - .moveTo(selection) - // Since the document has not changed, we only need to normalize the - // selection and this is done automatically in `transform.apply()`. + .moveTo(data.selection) .apply() }