()
| 1479 | } |
| 1480 | |
| 1481 | function 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. |
no test coverage detected