I add a string (i.e. 'Bob Smith') from a jQuery click event trapped using the on
function . . .
$(".vendorLookup").on("click", { fullName: $(this).text() }, displayAddy);
In the displayAddy handler for the click event, I extract the string (a persons first and last name) and split out the first and last name . . .
var name = event.data.fullName;
var parts = name.split(" ");
IE can figure this one out but Chrome and Firefox will not split unless I use the regular expression split(/\s/)
(unless I use the w3schools.com Tryit code editor and then it works).
Question: what exactly is going on here and when will I get bit by this later on when parsing for spaces cross-browser?
(Note: I don't think it matters but I am running this script on a wiki page in SharePoint 2010)