Using the HammerJS-JQuery-Plugin with RequireJS

There is quite confusing about how to use the HammerJS jQuery-Plugin in conjunction with RequireJS. It took me a real amount of time to research it.

The final simple answer which is working for me the following code, just added in front of the jQuery plugin require-call:

define('hammerjs', function() {
    return Hammer;

Einen Kommentar hinterlassen

Ihre E-Mail wird niemals veröffentlicht oder weitergegeben. Erforderliche Felder sind mit * markiert

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


This site uses Akismet to reduce spam. Learn how your comment data is processed.