2014-08-27 23:59:44 +08:00
|
|
|
|
2014-09-05 06:49:03 +08:00
|
|
|
(function () {
|
2014-08-27 23:59:44 +08:00
|
|
|
|
|
|
|
'use strict';
|
2014-09-02 08:15:31 +08:00
|
|
|
|
2014-08-27 23:59:44 +08:00
|
|
|
var
|
2014-09-02 08:15:31 +08:00
|
|
|
_ = require('_'),
|
2014-08-27 23:59:44 +08:00
|
|
|
ko = require('ko'),
|
2014-09-02 08:15:31 +08:00
|
|
|
|
2014-08-27 23:59:44 +08:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2014-09-02 08:15:31 +08:00
|
|
|
kn.extendAsViewModel(['View:RainLoop:About', 'AboutViewModel'], AboutViewModel);
|
|
|
|
_.extend(AboutViewModel.prototype, KnoinAbstractViewModel.prototype);
|
2014-08-27 23:59:44 +08:00
|
|
|
|
|
|
|
module.exports = AboutViewModel;
|
|
|
|
|
2014-09-05 06:49:03 +08:00
|
|
|
}());
|