()
| 1011 | } |
| 1012 | |
| 1013 | function bindJQuery() { |
| 1014 | // bind to jQuery if present; |
| 1015 | jQuery = window.jQuery; |
| 1016 | // reset to jQuery or default to us. |
| 1017 | if (jQuery) { |
| 1018 | jqLite = jQuery; |
| 1019 | extend(jQuery.fn, { |
| 1020 | scope: JQLitePrototype.scope, |
| 1021 | controller: JQLitePrototype.controller, |
| 1022 | injector: JQLitePrototype.injector, |
| 1023 | inheritedData: JQLitePrototype.inheritedData |
| 1024 | }); |
| 1025 | JQLitePatchJQueryRemove('remove', true); |
| 1026 | JQLitePatchJQueryRemove('empty'); |
| 1027 | JQLitePatchJQueryRemove('html'); |
| 1028 | } else { |
| 1029 | jqLite = JQLite; |
| 1030 | } |
| 1031 | angular.element = jqLite; |
| 1032 | } |
| 1033 | |
| 1034 | /** |
| 1035 | * throw error if the argument is falsy. |
no test coverage detected