开发者

how does mootools make periodical() work the same in all browsers?

If you use setInterval with some code, the speed is different in different browsers. But with if i use the periodical() from mootools the speed is almost exactly the same, how does it do that? can someone show 开发者_StackOverflow社区me an example and explain?


Looks like mootools (as of version 1.3.2) just calls through to setInterval, so it should behave the same:

periodical: function(periodical, bind, args){
    return setInterval(this.pass((args == null ? [] : args), bind), periodical);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜