snappymail/dev/View/User/About.js

28 lines
571 B
JavaScript
Raw Normal View History

2016-06-30 08:02:45 +08:00
var
_ = require('_'),
ko = require('ko'),
2016-06-30 08:02:45 +08:00
Settings = require('Storage/Settings'),
2016-06-30 08:02:45 +08:00
kn = require('Knoin/Knoin'),
AbstractView = require('Knoin/AbstractView');
2016-06-30 08:02:45 +08:00
/**
* @constructor
* @extends AbstractView
*/
function AboutUserView()
{
AbstractView.call(this, 'Center', 'About');
2016-06-30 08:02:45 +08:00
this.version = ko.observable(Settings.appSettingsGet('version'));
2016-06-30 08:02:45 +08:00
kn.constructorEnd(this);
}
2016-06-30 08:02:45 +08:00
kn.extendAsViewModel(['View/User/About', 'View/App/About', 'AboutViewModel'], AboutUserView);
_.extend(AboutUserView.prototype, AbstractView.prototype);
2016-06-30 08:02:45 +08:00
module.exports = AboutUserView;