I don't know why !== 'undefined'. May we use !currentFrame?? I assume we need to take care of the initial and useless resize event to have it. If it is, please add the bug number 961636 here.