Function.createCallback doesn't pass context correctly in FireFox

后端 未结 1 1751
鱼传尺愫
鱼传尺愫 2021-01-24 06:09

I\'ve discovered what seems to be a bug in how the MS AJAX library interacts with FireFox -- but maybe I\'m just doing it wrong. I\'ve got a script that looks something like th

相关标签:
1条回答
  • 2021-01-24 06:49

    Well, I don't know what the problem is with Function.createCallback, but I was able to fix it by using an anonymous method instead:

    var callback = function () { dowork(request) }; 
    setTimeout(callback, 1000);
    

    Close enough for government work.

    0 讨论(0)
提交回复
热议问题