mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-13 23:18:09 +00:00
Fix copyStyles() not working in Firefox
Yet more browser incompatibilities to weep over…
This commit is contained in:
parent
c8777ea012
commit
e54cc7b211
@ -209,8 +209,8 @@ Get the computed styles applied to an element as an array of strings of individu
|
||||
exports.getComputedStyles = function(domNode) {
|
||||
var textAreaStyles = window.getComputedStyle(domNode,null),
|
||||
styleDefs = [];
|
||||
$tw.utils.each(Object.keys(textAreaStyles),function(name) {
|
||||
styleDefs.push(name + ": " + textAreaStyles[name] + ";");
|
||||
$tw.utils.each(textAreaStyles,function(name,index) {
|
||||
styleDefs.push(name + ": " + textAreaStyles.getPropertyValue(name) + ";");
|
||||
});
|
||||
return styleDefs;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user