浏览代码

Remove a double variable declaration.

master
Boris Grozev 10 年前
父节点
当前提交
d5258e6197
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      modules/xmpp/strophe.emuc.js

+ 3
- 2
modules/xmpp/strophe.emuc.js 查看文件

@@ -111,10 +111,11 @@ module.exports = function(XMPP, eventEmitter) {
111 111
                 }
112 112
             }
113 113
 
114
+            var url;
114 115
             // Parse prezi tag.
115 116
             var presentation = $(pres).find('>prezi');
116 117
             if (presentation.length) {
117
-                var url = presentation.attr('url');
118
+                url = presentation.attr('url');
118 119
                 var current = presentation.find('>current').text();
119 120
 
120 121
                 console.log('presentation info received from', from, url);
@@ -129,7 +130,7 @@ module.exports = function(XMPP, eventEmitter) {
129 130
                 }
130 131
             }
131 132
             else if (this.preziMap[from] != null) {
132
-                var url = this.preziMap[from];
133
+                url = this.preziMap[from];
133 134
                 delete this.preziMap[from];
134 135
                 $(document).trigger('presentationremoved.muc', [from, url]);
135 136
             }

正在加载...
取消
保存