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

delete unused asc.clone

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54397 954022d7-b5bf-4e40-9824-e11837661b57
parent e9d5491c
......@@ -684,34 +684,6 @@
}
return true;
}
// $.extend не копирует объекты созданные с помощью конструктора, поэтому используем свою реализацию
function clone(Obj)
{
if( !Obj || !(kObjectL == typeof(Obj) || kArrayL == typeof(Obj)) )
{
return Obj;
}
var c = kFunctionL === typeof Obj.pop ? [] : {};
var p, v;
for(p in Obj)
{
if(Obj.hasOwnProperty(p))
{
v = Obj[p];
if(v && kObjectL === typeof v )
{
c[p] = clone(v);
}
else
{
c[p] = v;
}
}
}
return c;
}
function trim(val)
{
......@@ -1267,7 +1239,6 @@
window["Asc"].inherit = inherit;
window["Asc"].outputDebugStr = outputDebugStr;
window["Asc"].isEqual = isEqual;
window["Asc"].clone = clone;
window["Asc"].profileTime = profileTime;
window["Asc"].isNumber = isNumber;
window["Asc"].trim = trim;
......
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