MCPcopy Index your code
hub / github.com/angular-ui/ui-router / bindJQuery

Function bindJQuery

test/angular/1.2/angular.js:1481–1504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1479}
1480
1481function bindJQuery() {
1482 // bind to jQuery if present;
1483 jQuery = window.jQuery;
1484 // Use jQuery if it exists with proper functionality, otherwise default to us.
1485 // Angular 1.2+ requires jQuery 1.7.1+ for on()/off() support.
1486 if (jQuery && jQuery.fn.on) {
1487 jqLite = jQuery;
1488 extend(jQuery.fn, {
1489 scope: JQLitePrototype.scope,
1490 isolateScope: JQLitePrototype.isolateScope,
1491 controller: JQLitePrototype.controller,
1492 injector: JQLitePrototype.injector,
1493 inheritedData: JQLitePrototype.inheritedData
1494 });
1495 // Method signature:
1496 // jqLitePatchJQueryRemove(name, dispatchThis, filterElems, getterIfNoArguments)
1497 jqLitePatchJQueryRemove('remove', true, true, false);
1498 jqLitePatchJQueryRemove('empty', false, false, false);
1499 jqLitePatchJQueryRemove('html', false, false, true);
1500 } else {
1501 jqLite = JQLite;
1502 }
1503 angular.element = jqLite;
1504}
1505
1506/**
1507 * throw error if the argument is falsy.

Callers 1

angular.jsFile · 0.70

Calls 2

jqLitePatchJQueryRemoveFunction · 0.85
extendFunction · 0.70

Tested by

no test coverage detected