angular / angular.js

AngularJS - HTML enhanced for web apps!
https://angularjs.org
MIT License
58.85k stars 27.52k forks source link

AngularJS and jQuery <1.7.1 #7300

Closed iPirat closed 10 years ago

iPirat commented 10 years ago

Hi,

AngularJS doesnt work with jQuery <1.7.1 (which is documented at https://docs.angularjs.org/misc/faq)

The problem is, that AngularJS fails to work if an old jQuery Version is used. would you please alter the bindJQuery function to do the jQuery check as follows:

      // reset to jQuery (only if it features the on function) or default to us.
      if (jQuery && typeof(jQuery.fn.on)==='function') {

this way, falling back to jqLite in case of a too-old jQuery version

iPirat commented 10 years ago

Hi,

is there any way I can "vote" the issue up to get included at least in the next stable release?

it makes it compatible with jQuery <1.7.1 by only changing a single line of code (the line is in my original submission) -- and the line is absolutely readable and understandable.

Sorry I am not familiar with git, so I cant provide a pull request. But I dont think this is really necessary for a one-line-fix

mgol commented 10 years ago

Duplicate of #6376.