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

Anggota sejak
codeboy

Aktivitas Dokumentasi Terkini

Lihat semua aktivitas
Laman Tanggal Komentar

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.