Skip to content

Commit

Permalink
Allow Zepto to work with jQuery in noConflict mode
Browse files Browse the repository at this point in the history
* Check that window.$ is undefined rather than whether $ is a property
 of window.
* jQuery in noConflict mode sets window.$ to undefined which was causing
  Zepto to not be assigned
  • Loading branch information
peterkinmond committed Aug 7, 2013
1 parent 579f376 commit c7672c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zepto.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,4 +789,4 @@ var Zepto = (function() {

// If `$` is not yet defined, point it to `Zepto`
window.Zepto = Zepto
'$' in window || (window.$ = Zepto)
if (window.$ == undefined) window.$ = Zepto

0 comments on commit c7672c1

Please sign in to comment.