I was working on a PhoneGap app and left for the day. When I came back the next day I kept getting errors. Turns out that $(document) is returning null, but jQuery(document) is not. From what I’ve read on here it means that something else is overwriting the $ sign.
But, I’ve tried commenting out all the includes for javascript files except for jQuery and jQueryMobile and it still happens. I’ve also done a global search for noConflict and the only place it was found was in the jQuery js file.
Does anybody know what else might be causing this?
Turns out I had added a small utility function that was causing the error: