MCPcopy Index your code
hub / github.com/binux/qiandao / bindJQuery

Function bindJQuery

web/static/components/angularjs/angular.js:1470–1493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

angular.jsFile · 0.85

Calls 2

extendFunction · 0.85
jqLitePatchJQueryRemoveFunction · 0.85

Tested by

no test coverage detected