Remove a double variable declaration.

This commit is contained in:
Boris Grozev 2015-08-17 14:57:53 -05:00
parent 9cc9e6132c
commit d5258e6197
1 changed files with 3 additions and 2 deletions

View File

@ -111,10 +111,11 @@ module.exports = function(XMPP, eventEmitter) {
} }
} }
var url;
// Parse prezi tag. // Parse prezi tag.
var presentation = $(pres).find('>prezi'); var presentation = $(pres).find('>prezi');
if (presentation.length) { if (presentation.length) {
var url = presentation.attr('url'); url = presentation.attr('url');
var current = presentation.find('>current').text(); var current = presentation.find('>current').text();
console.log('presentation info received from', from, url); console.log('presentation info received from', from, url);
@ -129,7 +130,7 @@ module.exports = function(XMPP, eventEmitter) {
} }
} }
else if (this.preziMap[from] != null) { else if (this.preziMap[from] != null) {
var url = this.preziMap[from]; url = this.preziMap[from];
delete this.preziMap[from]; delete this.preziMap[from];
$(document).trigger('presentationremoved.muc', [from, url]); $(document).trigger('presentationremoved.muc', [from, url]);
} }