Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

codeboy

Учасник з
codeboy

Недавня активність в документації

Переглянути всю активність
Сторінка Дата Коментар

resize


removed the condition in init constraining the event listener won't be added unless the rAF was available.

resize


resize


resize


resize


1. Since the resize event will be triggered at certain rates, the 'loop' function wasn't necessary. 2. The actual callbacks would be running as soon as the resize was fired, insteadly in the rAF.