Sha256: bbf3bc5f7282d7ba363e5a8fdb1bf6fbd7d2b47d1428c3575e13b20a89818f03
Contents?: true
Size: 696 Bytes
Versions: 80
Compression:
Stored size: 696 Bytes
Contents
<script> // Why doesn't this method just live in the adder controller ? // Because the row component also need a special access to it in order to create cols with an id. So we make it global to the application. promethee.provider('identifier', function() { this.$get = function() { return { // https://gist.github.com/gordonbrander/2230317 generate: function() { // Math.random should be unique because of its seeding algorithm. // Convert it to base 36 (numbers + letters), and grab the first 9 characters // after the decimal. return '' + Math.random().toString(36).substr(2, 9); } }; }; }); </script>
Version data entries
80 entries across 80 versions & 1 rubygems