Commit c3753ea9 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Убрал Asc.isEqual

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59513 954022d7-b5bf-4e40-9824-e11837661b57
parent f92032e0
This diff is collapsed.
......@@ -765,45 +765,6 @@
}
}
function isEqual(Obj1, Obj2)
{
if(null == Obj1 && null == Obj2)
return true;
if(!Obj1 || !Obj2 || typeof(Obj1) != typeof(Obj2))
return false;
var p, v1, v2;
//проверяем чтобы Obj1 имел теже свойства что и Obj2
for(p in Obj2)
{
if(Obj2.hasOwnProperty(p) && !Obj1.hasOwnProperty(p))
return false;
}
//проверяем чтобы Obj2 имел теже свойства что и Obj1 и сравниваем их
for(p in Obj1)
{
if(Obj1.hasOwnProperty(p))
{
if(!Obj2.hasOwnProperty(p))
return false;
v1 = Obj1[p];
v2 = Obj2[p];
if(v1 && v2 && kObjectL === typeof(v1) && kObjectL === typeof(v2) )
{
if( false == isEqual(v1, v2))
return false;
}
else
{
if(v1 != v2)
return false;
}
}
}
return true;
}
function trim(val)
{
if(!String.prototype.trim)
......@@ -1490,7 +1451,6 @@
window["Asc"].ceil = ceil;
window["Asc"].incDecFonSize = incDecFonSize;
window["Asc"].outputDebugStr = outputDebugStr;
window["Asc"].isEqual = isEqual;
window["Asc"].profileTime = profileTime;
window["Asc"].isNumber = isNumber;
window["Asc"].isNumberInfinity = isNumberInfinity;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment