Closed kud closed 9 years ago
https://github.com/ftlabs/fastclick#amd
define(['jquery'] , function ($) { return function () {}; });
var $ = require('jquery'); exports.myExample = function () {};
They are showing RequireJS "sugar" style:
define(function (require) { var $ = require('jquery'); $('.foo').bar(); });
ooooooooooooh okay, thank you.
https://github.com/ftlabs/fastclick#amd