Code refactoring

Fixed owncloud password encoder/decoder (#291)
Fixed ckeditor in ownCloud iframe (Closes #302)
Release commit
This commit is contained in:
RainLoop Team 2014-09-06 01:44:29 +04:00
parent 7a374ebe03
commit 06274c6a7c
112 changed files with 2667 additions and 1862 deletions

21
dev/Knoin/AbstractBoot.js Normal file
View file

@ -0,0 +1,21 @@
(function () {
'use strict';
/**
* @constructor
*/
function AbstractBoot()
{
}
AbstractBoot.prototype.bootstart = function ()
{
};
module.exports = AbstractBoot;
}());

View file

@ -15,7 +15,7 @@
* @param {?=} aViewModels = []
* @constructor
*/
function KnoinAbstractScreen(sScreenName, aViewModels)
function AbstractScreen(sScreenName, aViewModels)
{
this.sScreenName = sScreenName;
this.aViewModels = Utils.isArray(aViewModels) ? aViewModels : [];
@ -24,22 +24,22 @@
/**
* @type {Array}
*/
KnoinAbstractScreen.prototype.oCross = null;
AbstractScreen.prototype.oCross = null;
/**
* @type {string}
*/
KnoinAbstractScreen.prototype.sScreenName = '';
AbstractScreen.prototype.sScreenName = '';
/**
* @type {Array}
*/
KnoinAbstractScreen.prototype.aViewModels = [];
AbstractScreen.prototype.aViewModels = [];
/**
* @return {Array}
*/
KnoinAbstractScreen.prototype.viewModels = function ()
AbstractScreen.prototype.viewModels = function ()
{
return this.aViewModels;
};
@ -47,12 +47,12 @@
/**
* @return {string}
*/
KnoinAbstractScreen.prototype.screenName = function ()
AbstractScreen.prototype.screenName = function ()
{
return this.sScreenName;
};
KnoinAbstractScreen.prototype.routes = function ()
AbstractScreen.prototype.routes = function ()
{
return null;
};
@ -60,12 +60,12 @@
/**
* @return {?Object}
*/
KnoinAbstractScreen.prototype.__cross = function ()
AbstractScreen.prototype.__cross = function ()
{
return this.oCross;
};
KnoinAbstractScreen.prototype.__start = function ()
AbstractScreen.prototype.__start = function ()
{
var
aRoutes = this.routes(),
@ -86,6 +86,6 @@
}
};
module.exports = KnoinAbstractScreen;
module.exports = AbstractScreen;
}());

View file

@ -16,7 +16,7 @@
* @param {string=} sPosition = ''
* @param {string=} sTemplate = ''
*/
function KnoinAbstractViewModel(sPosition, sTemplate)
function AbstractView(sPosition, sTemplate)
{
this.bDisabeCloseOnEsc = false;
this.sPosition = Utils.pString(sPosition);
@ -36,47 +36,47 @@
/**
* @type {boolean}
*/
KnoinAbstractViewModel.prototype.bDisabeCloseOnEsc = false;
AbstractView.prototype.bDisabeCloseOnEsc = false;
/**
* @type {string}
*/
KnoinAbstractViewModel.prototype.sPosition = '';
AbstractView.prototype.sPosition = '';
/**
* @type {string}
*/
KnoinAbstractViewModel.prototype.sTemplate = '';
AbstractView.prototype.sTemplate = '';
/**
* @type {string}
*/
KnoinAbstractViewModel.prototype.sDefaultKeyScope = Enums.KeyState.None;
AbstractView.prototype.sDefaultKeyScope = Enums.KeyState.None;
/**
* @type {string}
*/
KnoinAbstractViewModel.prototype.sCurrentKeyScope = Enums.KeyState.None;
AbstractView.prototype.sCurrentKeyScope = Enums.KeyState.None;
/**
* @type {string}
*/
KnoinAbstractViewModel.prototype.viewModelName = '';
AbstractView.prototype.viewModelName = '';
/**
* @type {Array}
*/
KnoinAbstractViewModel.prototype.viewModelNames = [];
AbstractView.prototype.viewModelNames = [];
/**
* @type {?}
*/
KnoinAbstractViewModel.prototype.viewModelDom = null;
AbstractView.prototype.viewModelDom = null;
/**
* @return {string}
*/
KnoinAbstractViewModel.prototype.viewModelTemplate = function ()
AbstractView.prototype.viewModelTemplate = function ()
{
return this.sTemplate;
};
@ -84,26 +84,26 @@
/**
* @return {string}
*/
KnoinAbstractViewModel.prototype.viewModelPosition = function ()
AbstractView.prototype.viewModelPosition = function ()
{
return this.sPosition;
};
KnoinAbstractViewModel.prototype.cancelCommand = function () {};
KnoinAbstractViewModel.prototype.closeCommand = function () {};
AbstractView.prototype.cancelCommand = function () {};
AbstractView.prototype.closeCommand = function () {};
KnoinAbstractViewModel.prototype.storeAndSetKeyScope = function ()
AbstractView.prototype.storeAndSetKeyScope = function ()
{
this.sCurrentKeyScope = Globals.keyScope();
Globals.keyScope(this.sDefaultKeyScope);
};
KnoinAbstractViewModel.prototype.restoreKeyScope = function ()
AbstractView.prototype.restoreKeyScope = function ()
{
Globals.keyScope(this.sCurrentKeyScope);
};
KnoinAbstractViewModel.prototype.registerPopupKeyDown = function ()
AbstractView.prototype.registerPopupKeyDown = function ()
{
var self = this;
@ -125,6 +125,6 @@
});
};
module.exports = KnoinAbstractViewModel;
module.exports = AbstractView;
}());

View file

@ -1,21 +0,0 @@
(function () {
'use strict';
/**
* @constructor
*/
function KnoinAbstractBoot()
{
}
KnoinAbstractBoot.prototype.bootstart = function ()
{
};
module.exports = KnoinAbstractBoot;
}());