rodneyrehm / viewport-units-buggyfill

Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari.
MIT License
1.59k stars 151 forks source link

Swallow errors for restrictive environments #39

Closed gaearon closed 8 years ago

gaearon commented 9 years ago

Fixes #38

rodneyrehm commented 9 years ago

sorry for the delay.

I would prefer forEach to remain untouched and we only do a for loop where it's necessary. Per your other comment, a console.warn for skipped items may help debug things, yes.