unsubscribe correctly

This commit is contained in:
Galen Wolfe-Pauly 2014-12-19 11:03:01 -08:00
parent da4c7cf7df
commit e727ab8d87

View File

@ -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)]
}) })
} }