drublic / css-modal

A modal built with pure CSS, enhanced with JavaScript
https://drublic.github.io/css-modal
MIT License
1.82k stars 211 forks source link

Incorrect function calls - modal.js #198

Closed sunnybear closed 7 years ago

sunnybear commented 9 years ago

Here are at least two incorrect function calls: modal.setFocus(element.id); there should be 0 arguments

modal.unsetActive(); there should 2 arguments

Please check JS code with any JS validator (at least with https://closure-compiler.appspot.com/ )

drublic commented 7 years ago

Thank you. This is fixed in 6e3c773647e85cd57f8343337236a20dbf93328c. Will not be present in the new version.