niutech / showModalDialog

window.showModalDialog polyfill using a <dialog> element
https://niutech.github.io/showModalDialog/demo.html
Apache License 2.0
177 stars 88 forks source link

Fix for engines that do not support generators #1

Closed phistuck closed 10 years ago

phistuck commented 10 years ago

Because yield and function* are used in a script, script engines that do not support generators fails hard due to syntax errors. Separating the scripts make the engine parse each of the scrips individually and syntax errors in a certain script do not break the rest of the scripts.

niutech commented 10 years ago

Thanks!