Skip to content

Commit 8096986

Browse files
committed
Panel: Code formatting
1 parent 7e69faa commit 8096986

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

ui/jquery.ui.panel.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,24 @@ $.widget("ui.panel", {
2626
this.element.addClass("ui-panel ui-widget ui-helper-reset");
2727

2828
var self = this;
29-
this.headers = this.element.find("> li > :first-child,> :not(li):even").addClass("ui-panel-header ui-helper-reset ui-state-default ui-corner-all")
29+
this.headers = this.element
30+
.find("> li > :first-child,> :not(li):even")
31+
.addClass("ui-panel-header ui-helper-reset ui-state-default ui-corner-all")
3032
.bind("mouseenter.panel", function() {
3133
if (self.options.disabled) {
3234
return;
3335
}
3436
$(this).addClass('ui-state-hover');
3537
})
36-
.bind("mouseleave.panel", function() { $(this).removeClass('ui-state-hover'); })
37-
.bind("focus.panel", function() { $(this).addClass('ui-state-focus'); })
38-
.bind("blur.panel", function() { $(this).removeClass('ui-state-focus'); })
38+
.bind("mouseleave.panel", function() {
39+
$(this).removeClass('ui-state-hover');
40+
})
41+
.bind("focus.panel", function() {
42+
$(this).addClass('ui-state-focus');
43+
})
44+
.bind("blur.panel", function() {
45+
$(this).removeClass('ui-state-focus');
46+
})
3947
.bind("click.panel", function(e) {
4048
if (self.options.disabled) {
4149
return;

0 commit comments

Comments
 (0)