fixed lint warnings

This commit is contained in:
coderaiser 2013-03-06 08:08:33 -05:00
parent a8e16a2cad
commit 6cbdd64d1a
3 changed files with 670 additions and 668 deletions

File diff suppressed because it is too large Load diff

View file

@ -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;
});
};
/**

View file

@ -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);