diff options
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
| -rw-r--r-- | addons/web_editor/static/src/js/transcoder.js | 6 |
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 |
