aboutsummaryrefslogtreecommitdiff
path: root/sources/core/focusmanager.js
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2017-12-04 17:54:04 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2017-12-04 17:54:04 +0100
commit317f8f8f0651488f226b5280a8f036c7c135c639 (patch)
tree97bd4889ab2822a00d4b0f0d5cde38b59f9f41de /sources/core/focusmanager.js
parent1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c (diff)
downloadpiedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.tar.gz
piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.tar.zst
piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.zip
Add oembed4.7.3
Diffstat (limited to 'sources/core/focusmanager.js')
-rw-r--r--sources/core/focusmanager.js12
1 files changed, 7 insertions, 5 deletions
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 @@
1/** 1/**
2 * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. 2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license 3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */ 4 */
5 5
@@ -147,8 +147,9 @@
147 * @member CKEDITOR.focusManager 147 * @member CKEDITOR.focusManager
148 */ 148 */
149 blur: function( noDelay ) { 149 blur: function( noDelay ) {
150 if ( this._.locked ) 150 if ( this._.locked ) {
151 return; 151 return;
152 }
152 153
153 function doBlur() { 154 function doBlur() {
154 if ( this.hasFocus ) { 155 if ( this.hasFocus ) {
@@ -160,13 +161,14 @@
160 } 161 }
161 } 162 }
162 163
163 if ( this._.timer ) 164 if ( this._.timer ) {
164 clearTimeout( this._.timer ); 165 clearTimeout( this._.timer );
166 }
165 167
166 var delay = CKEDITOR.focusManager._.blurDelay; 168 var delay = CKEDITOR.focusManager._.blurDelay;
167 if ( noDelay || !delay ) 169 if ( noDelay || !delay ) {
168 doBlur.call( this ); 170 doBlur.call( this );
169 else { 171 } else {
170 this._.timer = CKEDITOR.tools.setTimeout( function() { 172 this._.timer = CKEDITOR.tools.setTimeout( function() {
171 delete this._.timer; 173 delete this._.timer;
172 doBlur.call( this ); 174 doBlur.call( this );