Commit aab96bdb authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

window. -> typeof

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51129 954022d7-b5bf-4e40-9824-e11837661b57
parent 1073c5c7
......@@ -929,18 +929,22 @@ function CPPTXContentWriter()
_writer.StartRecord(0);
var elem = spTree[i];
if ((undefined !== window.WordShape && elem instanceof WordShape) || (undefined !== window.CShape && elem instanceof CShape))
{
this.WriteShape(elem, Document, oMapCommentId, oNumIdMap);
}
else if ((undefined !== window.WordImage && elem instanceof WordImage) || (undefined !== window.CImageShape && elem instanceof CImageShape))
{
this.WriteImage(elem);
}
else if ((undefined !== window.WordGroupShapes && elem instanceof WordGroupShapes) || (undefined !== window.CGroupShape && elem instanceof CGroupShape))
{
this.WriteGroup(elem, Document, oMapCommentId, oNumIdMap);
}
if ("undefined" !== typeof(WordShape) && elem instanceof WordShape)
{
this.WriteShape(elem, Document, oMapCommentId, oNumIdMap);
}
else if ("undefined" !== typeof(CShape) && elem instanceof CShape)
{
this.WriteShape2(elem, Document, oMapCommentId, oNumIdMap);
}
else if (("undefined" !== typeof(WordImage) && elem instanceof WordImage) || ("undefined" !== typeof(CImageShape) && elem instanceof CImageShape))
{
this.WriteImage(elem);
}
else if (("undefined" !== typeof(WordGroupShapes) && elem instanceof WordGroupShapes) || ("undefined" !== typeof(CGroupShape) && elem instanceof CGroupShape))
{
this.WriteGroup(elem, Document, oMapCommentId, oNumIdMap);
}
_writer.EndRecord(0);
}
......
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