Skip to content

Commit f22dbe2

Browse files
leeyehwangxiao
authored andcommitted
fix(AV): use global AV if exists (#297)
#274 use browserify's UMD wrapper, which overrides predefined global AV.
1 parent d22a591 commit f22dbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/av.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Each engineer has a duty to keep the code elegant
1212
**/
1313

14-
const AV = module.exports = {};
14+
const AV = module.exports = global.AV || {};
1515
AV._ = require('underscore');
1616
AV.version = require('./version');
1717
AV.Promise = require('./promise');

0 commit comments

Comments
 (0)