We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey all,
Zepto doesn't seem to want to define global with the following code:
global
var first = document.getElementById('first-global'), second = document.getElementById('second-global'); first.innerHTML = $; second.innerHTML = Zepto
Is there anyway to define Zepto global only if $ isn't available?
$
I understand $ is less reliable, seems to me something is being overwritten. To be sure what's behind $ I used the following pattern:
(function($){ $('selector').doSomething(); }(library));
Obviously where library is the other global variable besides $ I want to reference is Zepto.
library
global variable
Thank you all.
-Montana Mendy
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey all,
Zepto doesn't seem to want to define
global
with the following code:Is there anyway to define Zepto
global
only if$
isn't available?I understand
$
is less reliable, seems to me something is being overwritten. To be sure what's behind$
I used the following pattern:Obviously where
library
is the otherglobal variable
besides$
I want to reference is Zepto.Thank you all.
-Montana Mendy
The text was updated successfully, but these errors were encountered: