[jQuery] update to 1.2.6 returns different result when retrieving onchange attribute

[jQuery] update to 1.2.6 returns different result when retrieving onchange attribute


Folks,
I had been using jQuery 1.2.3 and had code like this working:
        if ($(this).attr("onchange")) {
            var funcCall = new String($(this).attr("onchange"));
            //alert(funcCall);
            if (funcCall.search(/^changedDestination/) || funcCall.search(/
^changedDeliverableResolution/) ||
                funcCall.search(/^changedPersonalItem/)) {
                var result = funcCall.match(/(.+),0\)/);
                if (result != null){
                    var newFuncCall = result[1]+','+unitTabCount+')';
                    $(this).attr("onchange",newFuncCall);
                }
            }
        }
The value of funcCall would contain the string of text in the quotes
for the onchange attribute of a select element, which might look like
this:
changedPersonalItem(this,'text',0)
Now after upgrading to version 1.2.6, when I execute this code the
value of funcCall contains this:
function onchange(event) {
changedPersonalItem(this,'text',0);
}
Does anyone know how I would be able to retrieve the text I was
originally getting without the added function text wrapped around it?
In case it matters, I'm testing/developing on a Mac OS 10.4 system
using FireFox 2.0.0.15.