jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

require jquery instead of jQuery #78

Open kentmw opened 9 years ago

kentmw commented 9 years ago

Inside the UMD definition in jquery.formatter.js, it is requiring jquery like:

factory(require('jQuery'));

We should be requiring jquery like:

factory(require('jquery'));

I had to alias the jquery dependency to use the capital letter. I believe the standard for requiring jquery is all lowercase. At least the npm package is lowercase: https://www.npmjs.com/package/jquery

sciotta commented 9 years ago

+1

sciotta commented 9 years ago

You can provisionally use a map inside your config:

map: {
    '*': {
        jQuery: 'jquery'
    }
}