Widgets: remove leftover debug bits and fix jshint warnings in widgets.js, see #25952.

git-svn-id: https://develop.svn.wordpress.org/trunk@26427 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2013-11-27 01:41:27 +00:00
parent f4264f9446
commit c83ea1d936

View File

@ -121,15 +121,6 @@ wpWidgets = {
$wrap = $this.parent(), $wrap = $this.parent(),
inside = ui.item.children('.widget-inside'); inside = ui.item.children('.widget-inside');
//console.log(this);console.log(ui);
if ( inside.css('display') === 'block' ) { if ( inside.css('display') === 'block' ) {
inside.hide(); inside.hide();
$(this).sortable('refreshPositions'); $(this).sortable('refreshPositions');
@ -209,7 +200,7 @@ wpWidgets = {
} }
}, },
over: function( event, ui ) { over: function() {
var $wrap = $(this).parent(); var $wrap = $(this).parent();
if ( $wrap.hasClass('closed') ) { if ( $wrap.hasClass('closed') ) {
@ -217,11 +208,11 @@ wpWidgets = {
} }
}, },
out: function( event, ui ) { out: function() {
$(this).parent().removeClass('widget-hover'); $(this).parent().removeClass('widget-hover');
}, },
deactivate: function( event, ui ) { deactivate: function() {
// Remove all min-height added on "start" // Remove all min-height added on "start"
$(this).css( 'min-height', '' ).parent().css( 'min-height', '' ); $(this).css( 'min-height', '' ).parent().css( 'min-height', '' );
}, },