Code refactoring

This commit is contained in:
RainLoop Team 2014-08-27 19:59:44 +04:00
parent 36329110e5
commit b4f416b6f8
105 changed files with 4331 additions and 4339 deletions

View file

@ -16,7 +16,7 @@
Plugins = require('Plugins'),
Utils = require('Utils'),
KnoinAbstractViewModel = require('KnoinAbstractViewModel')
KnoinAbstractViewModel = require('Knoin:AbstractViewModel')
;
/**
@ -24,13 +24,13 @@
*/
function Knoin()
{
this.sDefaultScreenName = '';
this.oScreens = {};
this.sDefaultScreenName = '';
this.oCurrentScreen = null;
}
Knoin.prototype.sDefaultScreenName = '';
Knoin.prototype.oScreens = {};
Knoin.prototype.sDefaultScreenName = '';
Knoin.prototype.oCurrentScreen = null;
Knoin.prototype.hideLoading = function ()
@ -209,7 +209,7 @@
Utils.log('Cannot find view model position: ' + sPosition);
}
}
return ViewModelClass ? ViewModelClass.__vm : null;
};
@ -352,7 +352,7 @@
}
// --
oCross = oScreen.__cross();
oCross = oScreen.__cross ? oScreen.__cross() : null;
if (oCross)
{
oCross.parse(sSubPart);

View file

@ -6,7 +6,7 @@
var
ko = require('ko'),
$window = require('$window'),
$win = require('$win'),
Enums = require('Enums'),
Globals = require('Globals'),
@ -88,7 +88,7 @@
{
var self = this;
$window.on('keydown', function (oEvent) {
$win.on('keydown', function (oEvent) {
if (oEvent && self.modalVisibility && self.modalVisibility())
{
if (!this.bDisabeCloseOnEsc && Enums.EventKeyCode.Esc === oEvent.keyCode)