X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fmenu%2Fplugin.js;h=1ea12b21515bf5671e19ef42f37d1e3ba5f0b4ee;hp=74fbb4f3e59c51fe70df32aedda405e2b4ff02b2;hb=039a051ccf3901311661022a30afd60fc38130c9;hpb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7 diff --git a/_source/plugins/menu/plugin.js b/_source/plugins/menu/plugin.js index 74fbb4f..1ea12b2 100644 --- a/_source/plugins/menu/plugin.js +++ b/_source/plugins/menu/plugin.js @@ -190,15 +190,15 @@ CKEDITOR.plugins.add( 'menu', this._.itemOverFn = CKEDITOR.tools.addFunction( function( index ) { clearTimeout( this._.showSubTimeout ); - this._.showSubTimeout = CKEDITOR.tools.setTimeout( this._.showSubMenu, editor.config.menu_subMenuDelay, this, [ index ] ); + this._.showSubTimeout = CKEDITOR.tools.setTimeout( this._.showSubMenu, editor.config.menu_subMenuDelay || 400, this, [ index ] ); }, - this); + this ); this._.itemOutFn = CKEDITOR.tools.addFunction( function( index ) { clearTimeout( this._.showSubTimeout ); }, - this); + this ); this._.itemClickFn = CKEDITOR.tools.addFunction( function( index ) { @@ -215,14 +215,14 @@ CKEDITOR.plugins.add( 'menu', else this.onClick && this.onClick( item ); }, - this); + this ); } // Put the items in the right order. sortItems( items ); - var chromeRoot = editor.container.getChild( 1 ); - var mixedContentClass = chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : ''; + var chromeRoot = editor.container.getChild( 1 ), + mixedContentClass = chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : ''; // Build the HTML that composes the menu and its items. var output = [ '