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 G
Georgios Kalpakas committed
19ecdb54bf85fc4e7bd3cde453aa6843f869a1ab
Parent: 30aa3ef
Committed by Martin Staffa <mjstaffa@googlemail.com>
on 9/14/2015, 8:43:55 PM