I'm trying to use jquery ui:s autocomplete widget in an appframework phonegap app. I'm using the jq.appframework.js plugin as per the documentation, like so:
<script src="appframework/jquery.js"></script>
<script src="appframework/jq.appframework.js"></script>
<script src="appframework/appframework.ui.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
But when the page loads the app breaks and I get the following console error:
uncaught TypeError: Cannot read property '__events' of undefined.
Its the following row (the second one, nr 261) that throws the error in jq.appframework.js:
$.bind = function (obj, ev, f) {
if (!obj.__events) obj.__events = {};
Not sure how to proceed with this, all help much appreciated!