mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(polyfill) rm DOM.cssSet
This commit is contained in:
parent
0089286b66
commit
e460b57518
1 changed files with 1 additions and 20 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue