diff options
Diffstat (limited to 'sources/core/focusmanager.js')
-rw-r--r-- | sources/core/focusmanager.js | 12 |
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 ); |