diff options
author | Ananya Sen | 2012-07-09 12:23:13 -0700 |
---|---|---|
committer | Ananya Sen | 2012-07-09 12:23:13 -0700 |
commit | bf9dba001ec84243e2f12cd13b0c0ae020fba4a2 (patch) | |
tree | 51de6a7646796c2e8155255bce0a5ce5575f2d64 /js/clipboard/external-apps-clipboard-agent.js | |
parent | fbdd97e7b1743efe2b0362e589c489aa23e29751 (diff) | |
download | ninja-bf9dba001ec84243e2f12cd13b0c0ae020fba4a2.tar.gz |
removed unnecessary todo comments
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/clipboard/external-apps-clipboard-agent.js')
-rw-r--r-- | js/clipboard/external-apps-clipboard-agent.js | 9 |
1 files changed, 4 insertions, 5 deletions
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 | |||
74 | } | 74 | } |
75 | }, | 75 | }, |
76 | 76 | ||
77 | //todo: this will be moved to a seperate api | ||
78 | pasteImageBinary:{ | 77 | pasteImageBinary:{ |
79 | value: function(imageBlob){ | 78 | value: function(imageBlob){ |
80 | var element, self = this, | 79 | var element, self = this, |
@@ -98,7 +97,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr | |||
98 | if (save && save.success && save.status === 201) { | 97 | if (save && save.success && save.status === 201) { |
99 | // | 98 | // |
100 | if (fileType.indexOf('svg') !== -1) { | 99 | if (fileType.indexOf('svg') !== -1) { |
101 | element = document.application.njUtils.make('embed', null, this.application.ninja.currentDocument);//TODO: Verify this is proper | 100 | element = document.application.njUtils.make('embed', null, this.application.ninja.currentDocument); |
102 | element.type = 'image/svg+xml'; | 101 | element.type = 'image/svg+xml'; |
103 | element.src = url+'/'+fileName; | 102 | element.src = url+'/'+fileName; |
104 | } else { | 103 | } else { |
@@ -119,7 +118,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr | |||
119 | // | 118 | // |
120 | self.application.ninja.elementMediator.addElements(element, rules, false); | 119 | self.application.ninja.elementMediator.addElements(element, rules, false); |
121 | } else { | 120 | } else { |
122 | //TODO: HANDLE ERROR ON SAVING FILE TO BE ADDED AS ELEMENT | 121 | //HANDLE ERROR ON SAVING FILE TO BE ADDED AS ELEMENT |
123 | } | 122 | } |
124 | 123 | ||
125 | return element; | 124 | return element; |
@@ -127,7 +126,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr | |||
127 | }, | 126 | }, |
128 | 127 | ||
129 | //paste from external applicaitons | 128 | //paste from external applicaitons |
130 | pasteHtml:{//todo: change to pasteNinja, pasteHTML, etc | 129 | pasteHtml:{ |
131 | value: function(htmlData, textData){ | 130 | value: function(htmlData, textData){ |
132 | var i=0, j=0, | 131 | var i=0, j=0, |
133 | pasteDataObject=null, | 132 | pasteDataObject=null, |
@@ -141,7 +140,7 @@ var ExternalAppsClipboardAgent = exports.ExternalAppsClipboardAgent = Montage.cr | |||
141 | 140 | ||
142 | if(htmlData){ | 141 | if(htmlData){ |
143 | 142 | ||
144 | //TODO: cleanse HTML | 143 | //cleanse HTML |
145 | 144 | ||
146 | htmlData.replace(/[<script]/g," "); | 145 | htmlData.replace(/[<script]/g," "); |
147 | 146 | ||