feature(polyfill) rm DOM.cssSet

This commit is contained in:
coderaiser 2015-01-08 12:42:05 -05:00
parent 0089286b66
commit e460b57518

View file

@ -9,27 +9,8 @@ var Util, DOM, jQuery;
DOM.load.ajax = $.ajax;
/* setting head ie6 - ie8 */
if (!document.head) {
if (!document.head)
document.head = $('head')[0];
/*
{name: '', src: ' ',func: '', style: '', id: '', parent: '',
async: false, inner: 'id{color:red, }, class:'', notAppend: false}
*/
DOM.cssSet = function(pParams_o) {
var lElement = '<style ';
if (pParams_o.id) lElement += 'id=' + pParams_o.id + ' ';
if (pParams_o.style) lElement += 'style=' + pParams_o.style + ' ';
if (pParams_o.className) lElement += 'class=' + pParams_o.className;
if (pParams_o.inner)lElement += '>' + pParams_o.inner;
lElement +='</style>';
return $(lElement)
.appendTo(pParams_o.parent || document.head);
};
}
if (!Function.bind)
Function.prototype.bind = function (context) {