Commit d5c36626 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused Common_CmpObj2, isOnlyLocalBufferSafariWord

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64383 954022d7-b5bf-4e40-9824-e11837661b57
parent c2c3f940
......@@ -49,7 +49,6 @@ var PASTE_EMPTY_COUNTER = 0;
var PASTE_EMPTY_USE = AscBrowser.isMozilla;
var g_bIsDocumentCopyPaste = true;
var isOnlyLocalBufferSafariWord = false;
function Editor_Copy_GetElem(api)
{
var ElemToSelect = document.getElementById( COPY_ELEMENT_ID );
......
......@@ -61,38 +61,4 @@ function Common_CopyObj2(Dst, Obj)
}
}
}
}
function Common_CmpObj2(Obj1, Obj2)
{
if(!Obj1 || !Obj2 || typeof(Obj1) != typeof(Obj2))
return false;
var p, v1, v2;
//проверяем чтобы Obj1 имел теже свойства что и Obj2
for(p in Obj2)
{
if(!Obj1.hasOwnProperty(p))
return false;
}
//проверяем чтобы Obj2 имел теже свойства что и Obj1 и сравниваем их
for(p in Obj1)
{
if(Obj2.hasOwnProperty(p))
{
v1 = Obj1[p];
v2 = Obj2[p];
if(v1 && v2 && 'object' === typeof(v1) && 'object' === typeof(v2) )
{
if( false == Common_CmpObj2(v1, v2))
return false;
}
else
{
if(v1 != v2)
return false;
}
}
else
return false;
}
return true;
};
\ No newline at end of file
}
\ No newline at end of file
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