marko/lib/uniqueId.js
Patrick Steele-Idem cf39d8a06d Cleanup
2014-03-26 15:03:42 -06:00

7 lines
163 B
JavaScript

module.exports = function (context) {
var attrs = context.attributes;
if (!attrs._nextId) {
attrs._nextId = 0;
}
return attrs._nextId++;
};