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

AMD pattern nested inside #202

Open mryellow opened 8 years ago

mryellow commented 8 years ago

Your wrapper is asking for window.jQuery, while inside it then defines a module.

Seems to defeat the purpose, would require loading jQuery into global space, then your code, then considering it as a module only after having done most of it in less organised fashion.