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

common/browser to function-closure

parent 90ab5566
......@@ -49,6 +49,9 @@ var Asc = window["Asc"];
window["AscCommonExcel"] = {};
var AscCommonExcel = window["AscCommonExcel"];
window["AscBrowser"] = {};
var AscBrowser = window["AscBrowser"];
//-------------------------------------------------------------------------------------------------
aStandartNumFormats = [];
aStandartNumFormats[0] = "General";
......
......@@ -187,6 +187,7 @@ native_canvas.prototype =
window["Asc"] = {};
window["AscCommonExcel"] = {};
window["AscBrowser"] = {};
var _null_object = {};
_null_object.length = 0;
......@@ -281,6 +282,7 @@ var native_renderer = null;
var _api = null;
var Asc = window["Asc"];
var AscCommonExcel = window["AscCommonExcel"];
var AscBrowser = window["AscBrowser"];
function NativeOpenFileData(data, version)
{
......
......@@ -23,6 +23,12 @@
*
*/
"use strict";
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
var AscBrowser = {
userAgent : "",
......@@ -109,3 +115,7 @@ AscBrowser.checkZoom = function()
AscBrowser.checkZoom();
// detect retina (http://habrahabr.ru/post/159419/)
AscBrowser.isRetina = (Math.abs(2 - (window.devicePixelRatio / AscBrowser.zoom)) < 0.01);
//--------------------------------------------------------export----------------------------------------------------
window['AscBrowser'] = window.AscBrowser = AscBrowser; // ToDo убрать window['AscBrowser']
})(window);
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