From 355fe90d78a2d1d4cbc4c0300e93cc6a98b19c90 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 13 Aug 2012 08:36:39 -0400 Subject: [PATCH] added a couple ie polyfills --- client.js | 34 ++++++++++++++++++++++++++++------ index.html | 8 ++++++-- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/client.js b/client.js index 899c17a6..1e93b8cc 100644 --- a/client.js +++ b/client.js @@ -50,7 +50,8 @@ var CloudClient = { * seting up in init() */ HEIGHT :0, - MIN_ONE_PANEL_WIDTH :1155 + MIN_ONE_PANEL_WIDTH :1155, + OLD_BROWSER :false }; /* @@ -302,13 +303,29 @@ CloudClient.Util = (function(){ * образом: {src: ' ',func: '', id: '', element: '', inner: ''} * все параметры опциональны */ - this.cssSet = function(pParams_o){ - pParams_o.name = 'style'; - pParams_o.parent = pParams_o.parent || document.head; - return this.anyload(pParams_o); + this.cssSet = (CloudCommander.OLD_BROWSER)? + /* if browser is old - make in diferen way */ + function(pParams_o){ + var lElement = '