JoshBarr / on-media-query

A neat way to trigger JS when media queries change. No jQuery required.
283 stars 33 forks source link

Add AMD support #19

Closed xzyfer closed 11 years ago

xzyfer commented 11 years ago

This pull request adds AMD support using the template supplied by the UMDJS project: https://github.com/umdjs/umd/blob/master/amdWebGlobal.js

This template doesn't changed the existing behaviour. However those who do have an AMD loader, like requirejs, can now use this plugin directly without shimming.