MCPcopy Create free account
hub / github.com/apache/cloudstack / bindJQuery

Function bindJQuery

tools/ngui/static/js/lib/angular.js:1013–1032  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1011}
1012
1013function 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.

Callers 1

angular.jsFile · 0.85

Calls 2

extendFunction · 0.85
JQLitePatchJQueryRemoveFunction · 0.85

Tested by

no test coverage detected