###define-uniqueid
Define-uniqueid is a sequential, unique id generator that can be attached to arbitrary object prototypes.
License
Usage
DOM / Chrome / Safari / Firefox / IE / Opera
<script src="/bower_components/define-uniqueid/uniqid.js"></script>
<script>
var undefineFx = defineUniqueId(HTMLElement);
var div = document.createElement('div');
div.uniqueId;
</script>
CommonJS / Node
var defineUniqueId = require('define-uniqueid').defineUniqueId;
var undefineFx = defineUniqueId(Object);
({}).uniqueId;
AMD / Require.js
requirejs.config({
baseUrl: '.',
paths: {
'define-uniqueid': './uniqid'
}
});
requirejs(['define-uniqueid'], function(defineUniqueId) {
var undefineFx = defineUniqueId(Object);
({}).uniqueId;
});