mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed lint warnings
This commit is contained in:
parent
a8e16a2cad
commit
6cbdd64d1a
3 changed files with 670 additions and 668 deletions
1322
lib/client.js
1322
lib/client.js
File diff suppressed because it is too large
Load diff
|
|
@ -322,7 +322,8 @@ var CloudCommander, Util,
|
|||
|
||||
/* функция проверяет возможно ли работать с кэшем каким-либо образом */
|
||||
this.isAllowed = function(){
|
||||
return ( CacheAllowed = Util.isObject( window.localStorage ) );
|
||||
CacheAllowed = Util.isObject( window.localStorage );
|
||||
return CacheAllowed;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -1137,7 +1138,9 @@ var CloudCommander, Util,
|
|||
* @param pKey - 'f1'-'f10'
|
||||
*/
|
||||
DOM.setButtonKey = function(pKey, pFunc){
|
||||
return CloudCommander.KeysPanel[pKey].onclick = pFunc;
|
||||
Util.tryCatchLog(function(){
|
||||
CloudCommander.KeysPanel[pKey].onclick = pFunc;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/* script, fixes ie */
|
||||
//var Util, DOM, jQuery;
|
||||
var Util, DOM, jQuery;
|
||||
|
||||
(function(Util, DOM, $){
|
||||
'use strict';
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
(parent.scrollLeft + parent.clientWidth),
|
||||
|
||||
alignWithTop = overTop && !overBottom;
|
||||
|
||||
|
||||
if ((overTop || overBottom) && centerIfNeeded)
|
||||
parent.scrollTop =
|
||||
pElement.offsetTop -
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
parent.clientHeight / 2 -
|
||||
parentBorderTopWidth +
|
||||
pElement.clientHeight / 2;
|
||||
|
||||
|
||||
if ((overLeft || overRight) && centerIfNeeded)
|
||||
parent.scrollLeft =
|
||||
pElement.offsetLeft -
|
||||
|
|
@ -142,7 +142,7 @@
|
|||
parent.clientWidth / 2 -
|
||||
parentBorderLeftWidth +
|
||||
pElement.clientWidth / 2;
|
||||
|
||||
|
||||
if ( (overTop || overBottom || overLeft || overRight) &&
|
||||
!centerIfNeeded)
|
||||
pElement.scrollIntoView(alignWithTop);
|
||||
|
|
@ -269,5 +269,4 @@
|
|||
DOM.Cache = new Cache();
|
||||
}
|
||||
|
||||
|
||||
})(Util, DOM, jQuery);
|
||||
Loading…
Add table
Add a link
Reference in a new issue