Small improvements

This commit is contained in:
RainLoop Team 2015-10-13 19:36:43 +03:00
parent 1b86e85df2
commit 7b5d00ff01
12 changed files with 52 additions and 14 deletions

View file

@ -44,7 +44,7 @@
{
mResult = null === mStorageValue ? null : JSON.parse(mStorageValue);
}
catch (oException) {}
catch (e) {}
if (!mResult)
{
@ -61,7 +61,7 @@
bResult = true;
}
catch (oException) {}
catch (e) {}
return bResult;
};
@ -89,7 +89,7 @@
mResult = null;
}
}
catch (oException) {}
catch (e) {}
return mResult;
};

View file

@ -44,7 +44,7 @@
{
mResult = null === mStorageValue ? null : JSON.parse(mStorageValue);
}
catch (oException) {}
catch (e) {}
if (!mResult)
{
@ -59,7 +59,7 @@
bResult = true;
}
catch (oException) {}
catch (e) {}
return bResult;
};
@ -87,7 +87,7 @@
mResult = null;
}
}
catch (oException) {}
catch (e) {}
return mResult;
};

View file

@ -365,7 +365,7 @@
return false;
};
Utils.removeInFocus = function ()
Utils.removeInFocus = function (force)
{
if (window.document && window.document.activeElement && window.document.activeElement.blur)
{
@ -374,6 +374,12 @@
{
window.document.activeElement.blur();
}
else if (force)
{
try {
window.document.activeElement.blur();
} catch (e) {}
}
}
};