ensl_gathers/lib/chat/author.js
Chris Blanchard b91e812fcd Change case
2015-07-22 14:53:50 +01:00

17 lines
No EOL
297 B
JavaScript

"use strict";
// Method which caches a single instance for each author
var Authors = (function () {
var authors = {};
return function (author) {
if (authors[author.id]) {
return authors[author.id]
} else {
return authors[author.id] = author;
}
};
})();
module.exports = Authors;