Question

I've been looking all over the place and I can't find what this is:

updateCallback : function(elm, status) {
    if (typeof elm.callbackFunction != 'undefined') {
        eval(elm.callbackFunction+'(\''+elm.id+'\',\''+status+'\')');
    }
}

What is callbackFunction? How come I can't find it defined anywhere?

Was it helpful?

Solution

It's a function that is passed into this script from another place in the script. This function is executed here with the ID and status given as arguments. The function it self will be anonymous or have a different name most likely

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top