1

Closed

jQXB.getValueFromAttrib has wrong IF condition

description

OBSERVED BEHAVIOR: jQXB.getValueFromAttrib has equal IF condition '==' (see below) . For now if passed jQrjElem has not JQXB_BINDEDATTRIBUTE_ATTR attribute defined the function returns 'undefined' value.
EXPECTED: IF condition should be changed to NOT EQUAL - e.g. if (attrib != undefined) .

jQXB.getValueFromAttrib = function (jQrjElem) {
var attrib = jQrjElem.attr(jQXB.JQXB_BINDEDATTRIBUTE_ATTR);
if (attrib == undefined)
    return jQrjElem.attr(attrib);
else
    return jQrjElem.val();
}
Closed Aug 13, 2011 at 12:32 AM by lightcode
FIXED

comments