callbacks and put data

This commit is contained in:
Galen Wolfe-Pauly 2014-08-05 11:45:59 -07:00
parent a86b55ab96
commit 2bc1c1a877
2 changed files with 2 additions and 3 deletions

View File

@ -300,7 +300,7 @@
%mid
=+ str=(trip q.q.luv)
=+ scr=|-(^-(tape ?~(mog ~ (xmlt & i.mog $(mog t.mog)))))
=+ rep=(need (repg "<head>" str (weld "<head>" scr)))
=+ rep=(need (repg "<head data-scr=\"true\">" str (weld "<head data-scr=\"true\">" scr)))
[%mid p.luv (tact rep)]
==
++ lofe :: variables in head
@ -1158,7 +1158,6 @@
window.urb.seqn_u = 0
window.urb.dely = 0
window.urb.puls = 0
window.urb.cabs = 0
window.urb.perms = {
pol:"gie",
sub:"tis",

View File

@ -51,7 +51,7 @@ window.urb.subscribe = function(params,cb) {
$this = this
this.qreq(method,url,params,true,function(err,data) {
if(cb) { cb.apply(this,[err,{status: data.status, data: data.data.data}])}
if(cb) { cb.apply(this,[err,{status: data.status, data: data.data}])}
if(!err && $this.puls == 0) {
params.type = "pol"
$this.poll(params)