Sachini / freebase-suggest

Automatically exported from code.google.com/p/freebase-suggest
Other
0 stars 0 forks source link

Incompatibility with jQuery 1.9 #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Combine Freebase Suggest 4.1 with jQuery 1.9.0:

<html>
<form><input id="myinput"></form>
<script 
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.js"></script>
<script src="https://www.gstatic.com/freebase/suggest/4_1/suggest.js"></script>
<script>$(function() { $("#myinput").suggest({filter:'(all 
type:/film/director)'}); });</script>
</html>

What do you see?

"Uncaught TypeError: Cannot read property 'msie' of undefined"
at line 245: ".bind($.browser.msie ? "paste.suggest" : "input.suggest", 
function(e) {"

Original issue reported on code.google.com by eaton....@gmail.com on 19 Jan 2013 at 8:40

GoogleCodeExporter commented 9 years ago
A workaround is to include jQuery Migrate: 
http://code.jquery.com/jquery-migrate-1.0.0.js

Original comment by eaton....@gmail.com on 19 Jan 2013 at 8:45

GoogleCodeExporter commented 9 years ago
Note: as an additional compatibility data point: Freebase Suggest 4.2 and 
jquery 1.10.2 are incompatible

Original comment by les.schm...@gmail.com on 21 Oct 2013 at 12:13