Commit 158eb93a 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@50659 954022d7-b5bf-4e40-9824-e11837661b57
parent 5b770326
......@@ -146,7 +146,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.isUseEmbeddedCutFonts = ("true" == ASC_DOCS_API_USE_EMBEDDED_FONTS.toLowerCase());
var oThis = this;
if (window.FileReader !== undefined && window.FormData !== undefined) {
if ("undefined" != typeof(FileReader) && "undefined" != typeof(FormData)) {
//var element = document.body;
var element = document.getElementById(this.HtmlElementName);
if(null != element)
......
......@@ -132,7 +132,7 @@ function asc_docs_api(name)
window.addEventListener("message", function(){
oThis.OnHandleMessage.apply(oThis, arguments);
}, false);
if (window.FileReader !== undefined && window.FormData !== undefined) {
if ("undefined" != typeof(FileReader) && "undefined" != typeof(FormData)) {
//var element = document.body;
var element = document.getElementById(this.HtmlElementName);
if(null != element)
......
......@@ -620,7 +620,7 @@ function asc_docs_api(name)
window.addEventListener("message", function(){
oThis.OnHandleMessage.apply(oThis, arguments);
}, false);
if (window.FileReader !== undefined && window.FormData !== undefined) {
if ("undefined" != typeof(FileReader) && "undefined" != typeof(FormData)) {
//var element = document.body;
var element = document.getElementById(this.HtmlElementName);
if(null != element)
......
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