[FIX] Cannot read property getComputedStyle in chrome

This commit is contained in:
Holger Brunn
2015-11-04 10:29:03 +01:00
parent baf39c849b
commit c905c09d7e

View File

@@ -53,8 +53,11 @@ openerp.web_ckeditor4 = function(instance)
//cleaning up //cleaning up
CKEDITOR.tools.setTimeout = function(func, milliseconds, scope, args, ownerWindow) 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); var result = ckeditor_setTimeout_org.apply(this, arguments);
console.log(arguments);
if(!ckeditor_timeouts[scope]) if(!ckeditor_timeouts[scope])
{ {
ckeditor_timeouts[scope] = []; ckeditor_timeouts[scope] = [];