X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fpiedsjaloux-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fcore%2Ffocusmanager.js;fp=sources%2Fcore%2Ffocusmanager.js;h=45c3137801b42d570e78a1515a477736a6910768;hp=ee1bc39f62f7a22201a099295887fa599440aa91;hb=317f8f8f0651488f226b5280a8f036c7c135c639;hpb=1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c 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 );