sentinel-js
Version:
JS library that detects new DOM nodes using CSS selectors
12 lines (11 loc) • 319 B
JavaScript
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(<%= amd %>, factory);
} else if (typeof exports === 'object') {
module.exports = factory(<%= cjs %>);
} else {
root.<%= namespace %> = factory(<%= global %>);
}
}(this, function(<%= param %>) {
<%= contents %>
}));