aboutsummaryrefslogtreecommitdiff
path: root/js/mediators/io-mediator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators/io-mediator.js')
-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 ////////////////////////////////////////////////////////////////////