From 317f8f8f0651488f226b5280a8f036c7c135c639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 4 Dec 2017 17:54:04 +0100 Subject: Add oembed --- sources/core/focusmanager.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sources/core/focusmanager.js') diff --git a/sources/core/focusmanager.js b/sources/core/focusmanager.js index ee1bc39..45c3137 100644 --- a/sources/core/focusmanager.js +++ b/sources/core/focusmanager.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ @@ -147,8 +147,9 @@ * @member CKEDITOR.focusManager */ blur: function( noDelay ) { - if ( this._.locked ) + if ( this._.locked ) { return; + } function doBlur() { if ( this.hasFocus ) { @@ -160,13 +161,14 @@ } } - if ( this._.timer ) + if ( this._.timer ) { clearTimeout( this._.timer ); + } var delay = CKEDITOR.focusManager._.blurDelay; - if ( noDelay || !delay ) + if ( noDelay || !delay ) { doBlur.call( this ); - else { + } else { this._.timer = CKEDITOR.tools.setTimeout( function() { delete this._.timer; doBlur.call( this ); -- cgit v1.2.3