From c9d0cb73698066247c6267bba8fa446a979565fb Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Thu, 9 Feb 2012 11:12:21 -0800 Subject: fixed templates descriptor, changed validation to on key up, fixed minor ui issues Signed-off-by: Ananya Sen --- js/mediators/io-mediator.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'js/mediators') 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, { enumerable: false, value: function (file, template, callback) { // - var xhr = new XMLHttpRequest(); + var xhr = new XMLHttpRequest(), returnObj=null; xhr.open("GET", template, false); xhr.send(); if (xhr.readyState === 4) { @@ -49,10 +49,11 @@ exports.IoMediator = Montage.create(Component, { //callback('win'); - /* -var returnObj = null; //like {"uri": "/gfdg/gdf/dfg.js", "success": true,...} - callback(returnObj); -*/ + + + ///please keep until real data is ready so that I can test the flow + callback(returnObj);//returnObj will be like {"uri": "/gfdg/gdf/dfg.js", "success": true,...} + ////end - please keep until real data is ready } }, //////////////////////////////////////////////////////////////////// -- cgit v1.2.3