mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 10:09:04 +00:00
chore(polyfill) rm " "
This commit is contained in:
parent
c0853c4560
commit
834f565a7d
1 changed files with 8 additions and 7 deletions
|
|
@ -14,8 +14,8 @@ var Util, DOM, jQuery;
|
|||
|
||||
if (!Function.bind)
|
||||
Function.prototype.bind = function (context) {
|
||||
var aArgs = [].slice.call(arguments, 1),
|
||||
fToBind = this,
|
||||
var aArgs = [].slice.call(arguments, 1),
|
||||
fToBind = this,
|
||||
NOP = function () {},
|
||||
fBound = function () {
|
||||
var arr = [].slice.call(arguments),
|
||||
|
|
@ -116,14 +116,14 @@ var Util, DOM, jQuery;
|
|||
parentBorderLeftWidth = parseInt(leftWidth, 10);
|
||||
|
||||
overTop = element.offsetTop - parent.offsetTop < parent.scrollTop,
|
||||
overBottom =
|
||||
(element.offsetTop -
|
||||
parent.offsetTop +
|
||||
overBottom =
|
||||
(element.offsetTop -
|
||||
parent.offsetTop +
|
||||
element.clientHeight -
|
||||
parentBorderTopWidth) >
|
||||
(parent.scrollTop + parent.clientHeight),
|
||||
|
||||
overLeft = element.offsetLeft -
|
||||
overLeft = element.offsetLeft -
|
||||
parent.offsetLeft < parent.scrollLeft,
|
||||
|
||||
overRight =
|
||||
|
|
@ -173,7 +173,8 @@ var Util, DOM, jQuery;
|
|||
lSpaceChar = lClassName ? ' ' : '';
|
||||
|
||||
lRet = !DOM.isContainClass(pElement, pClass);
|
||||
if ( lRet )
|
||||
|
||||
if (lRet)
|
||||
pElement.className += lSpaceChar + pClass;
|
||||
|
||||
return lRet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue