This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ngJq): properly detect when
ng-jq
is empty
Previously, even when `ng-jq` was empty (which should force the use of jqLite), Angular tried to find jQuery on `window['']`. If it didn't find anything there, it would fall back to jqLite (as expected). Nonetheless, trying to access `window['']` calls `getElementById('')`, which issues a warning in Firefox (maybe others). This fix properly detects when `ng-jq` is empty and avoids trying to access `window['']`. Fixes #12741
- Loading branch information