Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange
scroll top