cferdinandi / kraken

A lightweight, mobile-first boilerplate for front-end web developers.
http://cferdinandi.github.io/kraken
MIT License
806 stars 81 forks source link

Fix AMD module on all scripts #199

Closed cferdinandi closed 9 years ago

cferdinandi commented 9 years ago
(function (root, factory) {
    if ( typeof define === 'function' && define.amd ) {
        define([], factory(root));
    } else if ( typeof exports === 'object' ) {
        module.exports = factory(root);
    } else {
        root.myPlugin = factory(root);
    }
})(this, function (root) {

Source: https://github.com/umdjs/umd/blob/master/amdWeb.js

Redo

Correct