summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-09-20 13:52:41 +0200
committerqsm-odoo <qsm@odoo.com>2016-09-20 13:52:41 +0200
commit9a1939bbcb38db7b9537b0fb6663cad8aa9cb366 (patch)
tree5ac197e6fe6f51f9d47fdf5ef888534fbc65347f /addons/web_editor/static/src/js/transcoder.js
parente5755b12cff00af1a0e81e1954179148f733bf0c (diff)
parent4868b045a7191d0e8b170f43275cac7130205e83 (diff)
[MERGE] mass_mailing, *: add new mass mailing theme system
* web_editor, website -> Move some website options to web_editor to use them in mass_mailing (margin and resize) -> Rework on themes design and declaration conventions -> Review theme switching to bring default layout on first edition and to be able to define theme images -> Move theme design in their own asset -> Edition and saves fixes
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
-rw-r--r--addons/web_editor/static/src/js/transcoder.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js
index fbdc4b34b87..ddd8ce73533 100644
--- a/addons/web_editor/static/src/js/transcoder.js
+++ b/addons/web_editor/static/src/js/transcoder.js
@@ -3,12 +3,8 @@ odoo.define('web_editor.transcoder', function (require) {
var widget = require('web_editor.widget');
-var cache = {};
var rulesCache = [];
var getMatchedCSSRules = function (a) {
- if(cache[a.tagName + "." +a.className]) {
- return cache[a.tagName + "." +a.className];
- }
if (!rulesCache.length) {
var sheets = document.styleSheets;
for(var i = sheets.length-1; i >= 0 ; i--) {
@@ -117,7 +113,7 @@ var getMatchedCSSRules = function (a) {
delete style['padding-left'];
}
- return a.className ? cache[a.tagName + "." +a.className] = style : style;
+ return style;
};
// convert font awsome into image