diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-01-20 11:44:28 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-01-20 13:23:23 +0100 |
| commit | 6e47472486b2d546bb768cdffc0bda65185c6228 (patch) | |
| tree | bdc98683874c2140299f1559d36e2327ea209c55 /addons/web_editor/static/src/js | |
| parent | 2ef6e249d0da4aaf1ebc6c1b24d16060cb2e3f9d (diff) | |
[FIX] web_editor: firefox can have undefined value for style and broke inliner feature
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/transcoder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js index 5e699367dc2..20779bf19aa 100644 --- a/addons/web_editor/static/src/js/transcoder.js +++ b/addons/web_editor/static/src/js/transcoder.js @@ -84,7 +84,7 @@ var getMatchedCSSRules = function (a) { var style = {}; _.each(css, function (v,k) { _.each(v[1], function (v,k) { - if (k.indexOf('-webkit') === -1 && (!style[k] || style[k].indexOf('important') === -1 || v.indexOf('important') !== -1)) { + if (v && k.indexOf('-webkit') === -1 && (!style[k] || style[k].indexOf('important') === -1 || v.indexOf('important') !== -1)) { style[k] = v; } }); |
