3 ms·
These days I'd prefer a plugin template that doesn't infect the jQuery namespace by default (and is AMD compatible) so I can use it with a module loader: var
by nilliams 13y ago
These days I'd prefer a plugin template that doesn't infect the jQuery namespace by default (and is AMD compatible) so I can use it with a module loader:
var borderize = require('jquery.borderize');
...
borderize('div');
And my linter will tell me off if I forget a require.
Edit: I guess such a thing is not really a 'jQuery plugin' but a 'module that depends on jQuery'.