aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorAnanya Sen2012-02-09 11:12:21 -0800
committerAnanya Sen2012-02-09 11:12:21 -0800
commitc9d0cb73698066247c6267bba8fa446a979565fb (patch)
tree8d706201eb23565e41e288c710e9ff8a83639113 /js/mediators
parent04d375a02e44d1c11054ace16cd243ada8e6bd23 (diff)
downloadninja-c9d0cb73698066247c6267bba8fa446a979565fb.tar.gz
fixed templates descriptor, changed validation to on key up, fixed minor ui issues
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
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 ////////////////////////////////////////////////////////////////////