-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
Longterm: Decouple from jQuery #6
Comments
* This starts the decoupling process by separating the jQuery plugin from the standalone Wikilookup API. An alias is kept for compatibility (verified by unit tests which I intentionally left unmodified in this commit). * Update ESLint config to only whitelist "jQuery", and not "$". This project uses file closures to map from one to the other, which is presumably to support WordPress themes that might have other legacy libraries occupying the $ global (e.g. via jQuery.noConflict etc). Enforce this to avoid mistakes from slipping in by only whitelisting the one we want to use globally. No violations were found by ESLint :) * Update some of the public-facing titles to refer to the library as Wikilookup instead of jQuery.wikilookup, jQuery.Wikilookup or $.wikilookup. Ref mooeypoo#6.
@mooeypoo You may want to rename this repository as well, e.g. as If you're interested in and that worried about redirects:
<!DOCTYPE html>
<link rel="canonical" href="https://mooeypoo.github.io/wikilookup/">
<meta http-equiv="refresh" content="0; url=https://mooeypoo.github.io/wikilookup/">
<script>location.href="https://mooeypoo.github.io/wikilookup/"</script> |
* This starts the decoupling process by separating the jQuery plugin from the standalone Wikilookup API. An alias is kept for compatibility (verified by unit tests which I intentionally left unmodified in this commit). * Update ESLint config to only whitelist "jQuery", and not "$". This project uses file closures to map from one to the other, which is presumably to support WordPress themes that might have other legacy libraries occupying the $ global (e.g. via jQuery.noConflict etc). Enforce this to avoid mistakes from slipping in by only whitelisting the one we want to use globally. No violations were found by ESLint :) * Update some of the public-facing titles to refer to the library as Wikilookup instead of jQuery.wikilookup, jQuery.Wikilookup or $.wikilookup. Ref #6.
I'm giving this a try now; renaming the repo. |
So... looks like everything is redirected except the site. Wanna give the workaround a try? |
Okay, the repo name change worked and I updated the link to the demos from the README. I'm working on the workaround now. |
hm, doesn't seem to be working,but I think it's because of the folder. https://github.com/mooeypoo/mooeypoo.github.io |
It's working for me :) https://mooeypoo.github.io/jquery.wikilookup/ (with and without trailing slash) both now redirect to https://mooeypoo.github.io/wikilookup/ |
It's working now! Maybe a caching issue :) Thanks!! |
* Update tests to use the Wikilook global directly instead. * Minor doc fixes. * Remove redundant "$()" wrapping in wikilookup.js jQuery adapter. The "this" object must be a jQuery object already. Ref mooeypoo#6.
* Decoupling clean ups and minor improvements * Update tests to use the Wikilook global directly instead. * Minor doc fixes. * Remove redundant "$()" wrapping in wikilookup.js jQuery adapter. The "this" object must be a jQuery object already. Ref #6. * jquery: Make $.fn.wikilookup() a chainable method Enables things like: ``` $('foo') .some() .wikilookup() .thing() ```
jQuery was mostly used as a relatively quick solution for the API and DOM manipulation, but there's no need for it, it clutters the library, creates unnecessary dependency, and prevents the library from being used with other platforms.
The text was updated successfully, but these errors were encountered: