mathiasbynens / jquery-placeholder

A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet
https://mths.be/placeholder
MIT License
3.98k stars 1.34k forks source link

Npm package differs from master branch #258

Closed jeremylevy closed 9 years ago

jeremylevy commented 9 years ago

It seems that the npm package lost the ability of being required by Browserify.

npm cache clean
npm install jquery-placeholder

jquery.placeholder.js starts with :

/*! http://mths.be/placeholder v2.1.1 by @mathias */
(function(factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD
        define(['jquery'], factory);
    } else {
        // Browser globals
        factory(jQuery);
    }
}(function($) {

Installing from the repo works well.

amerikan commented 9 years ago

@jeremylevy can you try now?

jeremylevy commented 9 years ago

Works well. Thanks.