7e94283921ee919c58c1fd3c777d3f4105490c54
[yaffs-website] / utils / guid.js
1 "use strict";
2
3 exports.__esModule = true;
4 exports.newGUID = newGUID;
5 /**
6  * @file guid.js
7  * @module guid
8  */
9
10 /**
11  * Unique ID for an element or function
12  * @type {Number}
13  */
14 var _guid = 1;
15
16 /**
17  * Get a unique auto-incrementing ID by number that has not been returned before.
18  *
19  * @return {number}
20  *         A new unique ID.
21  */
22 function newGUID() {
23   return _guid++;
24 }