我页面上的一个脚本在FireFox中导致无限循环。
下面是Javascript:
function expandMothersRings(new_height)
{
window.scrollTo(0, 0);
$('#mr-container').animate({
height: new_height
}, 100, function() {
// Animation complete.
});
}
这是通过
ExternalInterface
从Flex对象:
var tiles_height:Number = 175+Math.ceil(MothersRingData.getInstance().styleArrayCollection.length/4)*175;
ExternalInterface.call("expandMothersRings", tiles_height + 300);
IE或Chrome没有问题。但不知为什么
expandMothersRings
函数在FF中无限循环。
flex对象不需要来自Javascript的任何返回值。如果我将JS函数改为:
function expandMothersRings(new_height)
{
alert(new_height);
}
然后它只执行一次。所以函数中的某些东西导致它在Firefox中循环。
我不知道什么?
这是
the page