From 36b2e540f06cef3887e7d0fea60527fee51e2a40 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Wed, 8 Feb 2012 15:36:53 -0800 Subject: fixed undo/redo for each code view document, changed new file integration with io mediator Signed-off-by: Ananya Sen --- js/mediators/io-mediator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/mediators') 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, { // - var returnObj = null; //like {"type": "js", "name": "filename", "source": "test file content", "uri": "/fs/fsd/"} - callback.operation.call(callback.thisScope, returnObj); + var returnObj = null; //like {"uri": "/gfdg/gdf/dfg.js", "success": true,...} + callback(returnObj); } }, //////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ exports.IoMediator = Montage.create(require("montage/ui/component").Component, { fileType = file.uri.substr(file.uri.lastIndexOf('.') + 1); } returnObj = {"type": ""+fileType, "name": ""+filename, "source": fileContent, "uri": file.uri}; - callback.operation.call(callback.thisScope, returnObj); + callback(returnObj); } }, //////////////////////////////////////////////////////////////////// -- cgit v1.2.3