2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-08-21 16:12:45 -06:00

FF earlier than FF11 support

This commit is contained in:
peterd 2015-01-31 12:57:25 +01:00
parent 77762df0b9
commit cb60a7671b
5 changed files with 14 additions and 11 deletions

4
color.all.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -339,9 +339,9 @@
// style.appendChild(document.createTextNode(_data._cssFunc)); // style.appendChild(document.createTextNode(_data._cssFunc));
addStyleSheet(_data._cssMain); addStyleSheet(_data._cssMain);
} }
for (var n in _data) { // almost 25k of memory ;o) // for (var n in _data) { // almost 25k of memory ;o)
_data[n] = null; // _data[n] = null;
} // }
}, },
test = document.createElement('img'); test = document.createElement('img');
@ -369,7 +369,10 @@
// faster ... FF8.0 (2011) though (but IE4) // faster ... FF8.0 (2011) though (but IE4)
// outerHTML ... FF11 (2013) // outerHTML ... FF11 (2013)
app.insertAdjacentHTML('afterbegin', app.insertAdjacentHTML('afterbegin',
_colorPicker ? _colorPicker.nodes.colorPicker.outerHTML : _data._html.replace(/§/g, prefix)); _colorPicker ? _colorPicker.nodes.colorPicker.outerHTML ||
new XMLSerializer().serializeToString(_colorPicker.nodes.colorPicker) : // FF before F11
_data._html.replace(/§/g, prefix));
// _colorPicker ? _colorPicker.nodes.colorPicker.parentNode.innerHTML : _data._html.replace(/§/g, prefix));
// _data._html = null; // _data._html = null;
app = app.children[0]; app = app.children[0];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long