ericmmartin / simplemodal

A modal dialog framework for jQuery
http://simplemodal.com/
Other
507 stars 229 forks source link

Simplemodal doesn't support AMD #7

Closed jd-boyd closed 12 years ago

jd-boyd commented 12 years ago

Jquery 1.7 adds support for the Asynchronous Module Definition (AMD) API ( https://github.com/amdjs/amdjs-api/wiki/AMD ). It would be great if simplemodal would also now support this. Usually the easiest, most flexible way to do this is to find the appropriate Universal Module Definition pattern from https://github.com/umdjs/umd (probably their simple jqueryPlugin template, https://github.com/umdjs/umd/blob/master/jqueryPlugin.js ), and apply it to simplemodal.