|
|
|
@ -256,10 +256,12 @@ g.summary.factory = function (url,pointer) {
|
|
|
|
|
var object = {}
|
|
|
|
|
object.url = url
|
|
|
|
|
var observer = null
|
|
|
|
|
|
|
|
|
|
var TIME_ELLAPSED = 2000 ;
|
|
|
|
|
object.callback = function (r) {
|
|
|
|
|
r = JSON.parse(r.responseText)
|
|
|
|
|
pointer(r)
|
|
|
|
|
console.log(r)
|
|
|
|
|
|
|
|
|
|
//observer.notify()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -267,10 +269,13 @@ g.summary.factory = function (url,pointer) {
|
|
|
|
|
observer = observer
|
|
|
|
|
|
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
|
httpclient.setAsync(false)
|
|
|
|
|
//httpclient.setAsync(false)
|
|
|
|
|
httpclient.get(this.url, this.callback)
|
|
|
|
|
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
observer.notify()
|
|
|
|
|
},TIME_ELLAPSED) ;
|
|
|
|
|
|
|
|
|
|
//observer.notify()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return object
|
|
|
|
|