Navigation Menu

Skip to content

Commit

Permalink
Fix some global leaks in ucejs.
Browse files Browse the repository at this point in the history
Signed-off-by: François de Metz <fdemetz@af83.com>
  • Loading branch information
francois2metz committed May 4, 2011
1 parent 19803a1 commit c8f7ddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions uce.js
Expand Up @@ -79,7 +79,7 @@
if (err) {
callback(err, result, xhr);
} else {
uid = result.result.uid;
var uid = result.result.uid;
var p = {"user": uid, "id": result.result.sid, "name": name};
that.attachPresence(p);
callback(err, p, xhr);
Expand Down Expand Up @@ -213,9 +213,9 @@
return this;
},
update: function(start, end, metadata, callback) {
params = {'metadata': metadata,
'uid': _presence.user,
'sid': _presence.id};
var params = {'metadata': metadata,
'uid': _presence.user,
'sid': _presence.id};
if (start) {
params.start = start;
}
Expand Down

0 comments on commit c8f7ddf

Please sign in to comment.