mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
unsubscribe correctly
This commit is contained in:
parent
da4c7cf7df
commit
e727ab8d87
@ -84,8 +84,7 @@ window.urb.unsubscribe = function(params,cb) {
|
|||||||
|
|
||||||
var $this = this
|
var $this = this
|
||||||
this.req(method,url,params,true,function(err,data) {
|
this.req(method,url,params,true,function(err,data) {
|
||||||
$this.cabs[$this.gsig(params)]('subscription closed')
|
cb(err,data)
|
||||||
delete $this.cabs[$this.gsig(params)]
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user