Uncaught TypeError: Cannot call method 'replace' of undefined
highlight_termgithub.tokeninput.js:538
$.TokenList.selected_dropdown_itemgithub.tokeninput.js:557
e.extend.eachjquery.min.js:16
populate_dropdowngithub.tokeninput.js:556
$.TokenList.ajax_params.successgithub.tokeninput.js:670
f.extend._Deferred.e.resolveWithjquery.min.js:16
wjquery.min.js:18
f.support.ajax.f.ajaxTransport.send.d
Getting the above error when ever an event is generated by typing any letter in the input box, I tried changing the Jquery versions but still didnt have any clue where the problem is.
Jquery Token Input: http://loopj.com/jquery-tokeninput/ Jquery version: 1.4.4