aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index b6d0e598..34e1eff2 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -32,7 +32,7 @@ exports.IoMediator = Montage.create(Component, {
32 enumerable: false, 32 enumerable: false,
33 value: function (file, template, callback) { 33 value: function (file, template, callback) {
34 // 34 //
35 var xhr = new XMLHttpRequest(); 35 var xhr = new XMLHttpRequest(), returnObj=null;
36 xhr.open("GET", template, false); 36 xhr.open("GET", template, false);
37 xhr.send(); 37 xhr.send();
38 if (xhr.readyState === 4) { 38 if (xhr.readyState === 4) {
@@ -49,10 +49,11 @@ exports.IoMediator = Montage.create(Component, {
49 49
50 50
51 //callback('win'); 51 //callback('win');
52 /* 52
53var returnObj = null; //like {"uri": "/gfdg/gdf/dfg.js", "success": true,...} 53
54 callback(returnObj); 54 ///please keep until real data is ready so that I can test the flow
55*/ 55 callback(returnObj);//returnObj will be like {"uri": "/gfdg/gdf/dfg.js", "success": true,...}
56 ////end - please keep until real data is ready
56 } 57 }
57 }, 58 },
58 //////////////////////////////////////////////////////////////////// 59 ////////////////////////////////////////////////////////////////////