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