ftlabs / fastclick

Polyfill to remove click delays on browsers with touch UIs
MIT License
18.66k stars 3.22k forks source link

AMD, sure? Is it not CommonJS instead? #370

Closed kud closed 9 years ago

kud commented 9 years ago

https://github.com/ftlabs/fastclick#amd

define(['jquery'] , function ($) {
    return function () {};
});
var $ = require('jquery');
exports.myExample = function () {};
cmwelsh commented 9 years ago

They are showing RequireJS "sugar" style:

define(function (require) {
    var $ = require('jquery');

    $('.foo').bar();
});
kud commented 9 years ago

ooooooooooooh okay, thank you.