diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-01-22 21:04:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-01-22 21:04:36 +0100 |
commit | 877f2e477b010f9f37a9044606f110a90f077680 (patch) | |
tree | 5cd61cf3b00ba10dc6110535ed9fdf67d8baba72 /lib/backbone/langs.js | |
parent | c8e2fc0e57d223c01a51d6ee186fc1662cd74d13 (diff) | |
download | gitbook-877f2e477b010f9f37a9044606f110a90f077680.zip gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.gz gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.bz2 |
Start rewrite
Diffstat (limited to 'lib/backbone/langs.js')
-rw-r--r-- | lib/backbone/langs.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/backbone/langs.js b/lib/backbone/langs.js new file mode 100644 index 0000000..2818519 --- /dev/null +++ b/lib/backbone/langs.js @@ -0,0 +1,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; |