From 0b6e845b4afe8cf3571351bd7b2aa872fab61c71 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Thu, 19 Jul 2012 17:08:08 -0700 Subject: copy/paste from external apps - removed unnecessary selection change to fix PI redraw issue Signed-off-by: Ananya Sen Conflicts: js/controllers/clipboard-controller.js Signed-off-by: Ananya Sen --- js/controllers/clipboard-controller.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'js/controllers') diff --git a/js/controllers/clipboard-controller.js b/js/controllers/clipboard-controller.js index c3543c95..afc94c8c 100644 --- a/js/controllers/clipboard-controller.js +++ b/js/controllers/clipboard-controller.js @@ -87,11 +87,6 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component } } - //perform clipboard operations only if selection tool is selected - if(this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.selectionToolIndex].selected === false){ - return; - } - if(this.clipboardContext === "stage"){ ElementsClipboardAgent.copy(clipboardEvent); } @@ -111,11 +106,6 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component } } - //perform clipboard operations only if selection tool is selected - if(this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.selectionToolIndex].selected === false){ - return; - } - if(this.clipboardContext === "stage"){ ElementsClipboardAgent.cut(clipboardEvent); } @@ -142,11 +132,6 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component } } - //perform clipboard operations only if selection tool is selected - if(this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.selectionToolIndex].selected === false){ - return; - } - //TODO: return if stage is not focussed if(this.clipboardContext === "stage"){ -- cgit v1.2.3