From eccc71a11c3cbff4e5f2e2ba34657f6d93439924 Mon Sep 17 00:00:00 2001 From: kekee000 Date: Wed, 24 Sep 2014 10:23:12 +0800 Subject: [PATCH] fix command --- src/editor/mode/shapes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/mode/shapes.js b/src/editor/mode/shapes.js index 3fc8508..9906bca 100644 --- a/src/editor/mode/shapes.js +++ b/src/editor/mode/shapes.js @@ -31,7 +31,7 @@ define( * @param {string} command 命令 */ function onContextMenu(e) { - if(this.currentGroup.shapes.length !== 1) { + if(this.currentGroup.shapes.length === 0) { return; }