From ffc59919709bad0b44d8fcaaeebf5c13ff84f926 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 5 Jul 2013 11:53:21 +0000 Subject: [PATCH] chore(dom) ie -> polyfill --- lib/client/polyfill.js | 288 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 288 insertions(+) create mode 100644 lib/client/polyfill.js diff --git a/lib/client/polyfill.js b/lib/client/polyfill.js new file mode 100644 index 00000000..172a7aa3 --- /dev/null +++ b/lib/client/polyfill.js @@ -0,0 +1,288 @@ +var Util, DOM, jQuery; + +(function(Util, DOM, $){ + 'use strict'; + + if(!window.XMLHttpRequest || !document.head) + DOM.ajax = $.ajax; + + /* setting head ie6 - ie8 */ + if(!document.head){ + document.head = $('head')[0]; + + /* + {name: '', src: ' ',func: '', style: '', id: '', parent: '', + async: false, inner: 'id{color:red, }, class:'', not_append: false} + */ + DOM.cssSet = function(pParams_o){ + var lElement = '