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/clipboard/external-apps-clipboard-agent.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'js/clipboard') diff --git a/js/clipboard/external-apps-clipboard-agent.js b/js/clipboard/external-apps-clipboard-agent.js index 65410543..b82784d3 100644 --- a/js/clipboard/external-apps-clipboard-agent.js +++ b/js/clipboard/external-apps-clipboard-agent.js @@ -148,16 +148,12 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr data = htmlData ? htmlData : textData; if (data && data.length) { - //deselect current selections - this.application.ninja.selectedElements.length = 0; - NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": true} ); - divWrapper = document.application.njUtils.make("div", null, this.application.ninja.currentDocument); this.application.ninja.elementMediator.addElements(divWrapper, {"height": "68px", "left": "0px", "position": "absolute", "top": "0px", - "width": "161px"}, false); + "width": "161px"}, false/*notify*/, false/*callAddDelegate*/); divWrapper.innerHTML = data; -- cgit v1.2.3