aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorAnanya Sen2012-02-08 15:36:53 -0800
committerAnanya Sen2012-02-08 15:36:53 -0800
commit36b2e540f06cef3887e7d0fea60527fee51e2a40 (patch)
treeb636cba0ad7d4efedca3fbf791b05728f8cff37d /js/mediators
parent729bc48212d7244539c99ca206be673eed011115 (diff)
downloadninja-36b2e540f06cef3887e7d0fea60527fee51e2a40.tar.gz
fixed undo/redo for each code view document, changed new file integration with io mediator
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index 76f78a7d..fbabd780 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -20,8 +20,8 @@ exports.IoMediator = Montage.create(require("montage/ui/component").Component, {
20 // 20 //
21 21
22 22
23 var returnObj = null; //like {"type": "js", "name": "filename", "source": "test file content", "uri": "/fs/fsd/"} 23 var returnObj = null; //like {"uri": "/gfdg/gdf/dfg.js", "success": true,...}
24 callback.operation.call(callback.thisScope, returnObj); 24 callback(returnObj);
25 } 25 }
26 }, 26 },
27 //////////////////////////////////////////////////////////////////// 27 ////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ exports.IoMediator = Montage.create(require("montage/ui/component").Component, {
45 fileType = file.uri.substr(file.uri.lastIndexOf('.') + 1); 45 fileType = file.uri.substr(file.uri.lastIndexOf('.') + 1);
46 } 46 }
47 returnObj = {"type": ""+fileType, "name": ""+filename, "source": fileContent, "uri": file.uri}; 47 returnObj = {"type": ""+fileType, "name": ""+filename, "source": fileContent, "uri": file.uri};
48 callback.operation.call(callback.thisScope, returnObj); 48 callback(returnObj);
49 } 49 }
50 }, 50 },
51 //////////////////////////////////////////////////////////////////// 51 ////////////////////////////////////////////////////////////////////