Skip to content

Commit 61a9389

Browse files
committed
[fix] an issue breaks tests in browser.
该问题会导致直接修改 AV.* 不生效。
1 parent a0909ff commit 61a9389

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/av-browser.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
'use strict';
22

3+
var _ = require('underscore');
34
var AV = require('./AV');
45

5-
global.AV = global.AV || {};
6-
7-
// 防止多个 SDK 互相覆盖 AV 命名空间
8-
for (var k in AV) {
9-
global.AV[k] = AV[k];
10-
}
6+
global.AV = _.extend(AV, global.AV);

0 commit comments

Comments
 (0)