Skip to content

Commit e39641b

Browse files
committed
Zepto is exposed in window.Zept
Do not window.$, it's only set if not defined already.
1 parent c034b2e commit e39641b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/standalone/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
var current$ = window.$;
44
require('../../zepto.js');
5-
var zepto = window.$;
6-
window.$ = current$;
5+
var zepto = window.Zepto;
6+
window.$ = current$; // restore the `$` (we don't want Zepto here)
77

88
// setup DOM element
99
var DOM = require('../common/dom.js');

0 commit comments

Comments
 (0)