You mean if you say callback = ... you are setting window.callback? Even if you are inside of a function?