Commit 923fe390 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53264 954022d7-b5bf-4e40-9824-e11837661b57
parent 234a6302
......@@ -11,6 +11,7 @@ window.__fonts_files = __fonts_files;
window.__fonts_infos = __fonts_infos;
var document = new Object();
window.document = document;
function Image()
{
......@@ -120,9 +121,23 @@ native_canvas.prototype =
toDataUrl : function(type)
{
return "";
},
addEventListener : function()
{
}
};
window["Asc"] = new Object();
var _null_object = new Object();
_null_object.addEventListener = function(){};
_null_object.setAttribute = function(){};
_null_object.getElementsByTagName = function() { return []; };
_null_object.appendChild = function() {};
_null_object.removeChild = function() {};
_null_object.insertBefore = function() {};
document.createElement = function(type)
{
if (type && type.toLowerCase)
......@@ -130,9 +145,21 @@ document.createElement = function(type)
if (type.toLowerCase() == "canvas")
return new native_canvas();
}
return null;
return _null_object;
}
function _return_empty_html_element() { return _null_object; };
document.createDocumentFragment = _return_empty_html_element;
document.getElementsByTagName = function() { return []; };
document.insertBefore = function() {};
document.getElementById = function() { return undefined; };
document.createComment = function() { return undefined; };
document.documentElement = _null_object;
document.body = _null_object;
var native = CreateNativeEngine();
window.native = native;
......
This diff is collapsed.
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