From c905c09d7e1d9e49fbb02ca6f75d3e4897cd9227 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 4 Nov 2015 10:29:03 +0100 Subject: [PATCH] [FIX] Cannot read property getComputedStyle in chrome --- web_ckeditor4/static/src/js/web_ckeditor4.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_ckeditor4/static/src/js/web_ckeditor4.js b/web_ckeditor4/static/src/js/web_ckeditor4.js index 7af40c6b..efe5466c 100644 --- a/web_ckeditor4/static/src/js/web_ckeditor4.js +++ b/web_ckeditor4/static/src/js/web_ckeditor4.js @@ -53,8 +53,11 @@ openerp.web_ckeditor4 = function(instance) //cleaning up CKEDITOR.tools.setTimeout = function(func, milliseconds, scope, args, ownerWindow) { + if(scope && scope.editor && scope.editor.status == 'destroyed') + { + return 0; + } var result = ckeditor_setTimeout_org.apply(this, arguments); - console.log(arguments); if(!ckeditor_timeouts[scope]) { ckeditor_timeouts[scope] = [];