浏览代码

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

正在加载...
取消
保存