I'm trying to query the Geonames data with select2 and everything appears to be working with formatting the results. However, an error is generated when the results are populated and I believe it is stopping the formatSelection function from not being executed.
The fiddle is here: http://jsfiddle.net/6CVbw/
The error being generated is:
Uncaught TypeError: Property 'jQuery18206926385117694736_1350159499559' of object [object Window] is not a function
Anyone have any ideas?
Edit: This happens in Chrome and Safari, try searching for London or Toronto.