Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

only use window.jQuery if it supports required jQuery.fn.on #6376

Merged
merged 1 commit into from
May 12, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1433,9 +1433,9 @@ function bindJQuery() {
var originalCleanData;
// bind to jQuery if present;
jQuery = window.jQuery;

// reset to jQuery or default to us.
if (jQuery) {
// Use jQuery if it exists with proper functionality, otherwise default to us.
// Angular 1.2+ requires jQuery 1.7.1+ for on()/off() support.
if (jQuery && jQuery.fn.on) {
jqLite = jQuery;
extend(jQuery.fn, {
scope: JQLitePrototype.scope,
Expand Down