daniel-zahariev/jquery-textntags — pull request #4 by paulwittmann (2012-10-16 18:56:32+00:00)
Title: Fix failing HTTP GET to /undefined if the image attribute is undefined

we're using the code from the basic example with the following 'data' in onDataRequest:

[{
"id": 173,
"name": "Admin Huber",
"type": "user"
}, {
"id": "177",
"name": "Bob",
"type": "user"
}]

when i enter '@' followed by, e.g., 'Bo' an HTTP GET to current_path/undefined is triggered. to prevent this from happening i'm checking whether localTag.img exists inside the populateTagList function.

i'm very unfamiliar with the inner working of textntags and fixed this to the best of my knowledge, feel free to improve my code. couldn't find any report of this issue anywhere else.

cheers, Paul