Skip to content
Permalink
Browse files

Avoid duplicate focus call for "html" type dialog field.

  • Loading branch information...
Garry Yao authored and Reinmar committed Jul 30, 2012
1 parent d4bfc33 commit 47f8446b766444c55d2cb307264671b64132914d
Showing with 1 addition and 2 deletions.
  1. +1 −2 plugins/dialogui/plugin.js
@@ -713,9 +713,8 @@ CKEDITOR.plugins.add( 'dialogui', {
// Look for focus function in definition.
var focus = elementDefinition.focus;
if ( focus ) {
var oldFocus = this.focus;
this.focus = function() {
oldFocus.call( this );
this.selectParentTab();
typeof focus == 'function' && focus.call( this );
this.fire( 'focus' );
};

0 comments on commit 47f8446

Please sign in to comment.
You can’t perform that action at this time.