mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
callbacks and put data
This commit is contained in:
parent
a86b55ab96
commit
2bc1c1a877
@ -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",
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user