snappymail/dev/ViewModels/AboutViewModel.js
RainLoop Team ccbf04cb67 Code refactoring
Fixed languages popup
Release commit
2014-09-02 04:15:31 +04:00

34 lines
No EOL
690 B
JavaScript

(function (module, require) {
'use strict';
var
_ = require('_'),
ko = require('ko'),
kn = require('App:Knoin'),
Settings = require('Storage:Settings'),
KnoinAbstractViewModel = require('Knoin:AbstractViewModel')
;
/**
* @constructor
* @extends KnoinAbstractViewModel
*/
function AboutViewModel()
{
KnoinAbstractViewModel.call(this, 'Center', 'About');
this.version = ko.observable(Settings.settingsGet('Version'));
kn.constructorEnd(this);
}
kn.extendAsViewModel(['View:RainLoop:About', 'AboutViewModel'], AboutViewModel);
_.extend(AboutViewModel.prototype, KnoinAbstractViewModel.prototype);
module.exports = AboutViewModel;
}(module, require));