سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top