From bf9dba001ec84243e2f12cd13b0c0ae020fba4a2 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Mon, 9 Jul 2012 12:23:13 -0700 Subject: removed unnecessary todo comments Signed-off-by: Ananya Sen --- js/clipboard/external-apps-clipboard-agent.js | 9 ++++----- js/clipboard/internal-ops/elements-clipboard-agent.js | 7 ++----- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'js/clipboard') diff --git a/js/clipboard/external-apps-clipboard-agent.js b/js/clipboard/external-apps-clipboard-agent.js index 92d72dcb..fd128ba7 100644 --- a/js/clipboard/external-apps-clipboard-agent.js +++ b/js/clipboard/external-apps-clipboard-agent.js @@ -74,7 +74,6 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr } }, - //todo: this will be moved to a seperate api pasteImageBinary:{ value: function(imageBlob){ var element, self = this, @@ -98,7 +97,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr if (save && save.success && save.status === 201) { // if (fileType.indexOf('svg') !== -1) { - element = document.application.njUtils.make('embed', null, this.application.ninja.currentDocument);//TODO: Verify this is proper + element = document.application.njUtils.make('embed', null, this.application.ninja.currentDocument); element.type = 'image/svg+xml'; element.src = url+'/'+fileName; } else { @@ -119,7 +118,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr // self.application.ninja.elementMediator.addElements(element, rules, false); } else { - //TODO: HANDLE ERROR ON SAVING FILE TO BE ADDED AS ELEMENT + //HANDLE ERROR ON SAVING FILE TO BE ADDED AS ELEMENT } return element; @@ -127,7 +126,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr }, //paste from external applicaitons - pasteHtml:{//todo: change to pasteNinja, pasteHTML, etc + pasteHtml:{ value: function(htmlData, textData){ var i=0, j=0, pasteDataObject=null, @@ -141,7 +140,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr if(htmlData){ - //TODO: cleanse HTML + //cleanse HTML htmlData.replace(/[