Widgets: Remove create_function() from the customizer class.

props westonruter.
fixes #27805.

Built from https://develop.svn.wordpress.org/trunk@28143


git-svn-id: http://core.svn.wordpress.org/trunk@27974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2014-04-16 00:11:35 +00:00
parent 55e3a1101a
commit dbca0c5e15
3 changed files with 47 additions and 48 deletions

View File

@@ -722,7 +722,7 @@
}, 250 );
// Trigger widget form update when hitting Enter within an input
this.container.find( '.widget-content' ).on( 'keydown', 'input', function( e ) {
$widgetContent.on( 'keydown', 'input', function( e ) {
if ( 13 === e.which ) { // Enter
e.preventDefault();
self.updateWidget( { ignoreActiveElement: true } );

File diff suppressed because one or more lines are too long