summaryrefslogtreecommitdiffstats
path: root/lib/backbone/langs.js
blob: 2818519efd7ab160a2c275fad7d42f10438eaec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

function Langs() {
    if (!(this instanceof Langs)) return new Langs();

    this.languages = [];
}

Langs.prototype.type = 'langs';

// Return the count of languages
Langs.prototype.count = function() {
    return this.languages.length;
};

module.exports = Langs;