()
| 1468 | } |
| 1469 | |
| 1470 | function 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. |
no test coverage detected