Skip to content

Commit 3b96fa8

Browse files
committed
Removed param "refresh" sent to .controlgroup since it's not a $.widget
1 parent 52a0c10 commit 3b96fa8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/unit/controlgroup/controlgroup_core.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
setup: function() {
2525
this.vcontrolgroup = $( "#vertical-controlgroup" );
2626
this.vcontrolgroup.find( ".ui-btn" ).show();
27-
this.vcontrolgroup.controlgroup("refresh");
27+
this.vcontrolgroup.controlgroup();
2828
}
2929
});
3030

@@ -33,7 +33,7 @@
3333

3434
//We hide the first button and refresh
3535
this.vcontrolgroup.find( ".ui-btn" ).first().hide();
36-
this.vcontrolgroup.controlgroup("refresh");
36+
this.vcontrolgroup.controlgroup();
3737

3838
var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
3939
middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
@@ -50,7 +50,7 @@
5050

5151
//We hide the last button and refresh
5252
this.vcontrolgroup.find( ".ui-btn" ).last().hide();
53-
this.vcontrolgroup.controlgroup("refresh");
53+
this.vcontrolgroup.controlgroup();
5454

5555
var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
5656
middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
@@ -84,14 +84,14 @@
8484
setup: function() {
8585
this.hcontrolgroup = $( "#horizontal-controlgroup" );
8686
this.hcontrolgroup.find( ".ui-btn" ).show();
87-
this.hcontrolgroup.controlgroup("refresh");
87+
this.hcontrolgroup.controlgroup();
8888
}
8989
});
9090

9191
test( "horizontal controlgroup after first button was hidden", function() {
9292
//We hide the first button and refresh
9393
this.hcontrolgroup.find( ".ui-btn" ).first().hide();
94-
this.hcontrolgroup.controlgroup("refresh");
94+
this.hcontrolgroup.controlgroup();
9595

9696
var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
9797
middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
@@ -106,7 +106,7 @@
106106
test( "horizontal controlgroup after last button was hidden", function() {
107107
//We hide the last button and refresh
108108
this.hcontrolgroup.find( ".ui-btn" ).last().hide();
109-
this.hcontrolgroup.controlgroup("refresh");
109+
this.hcontrolgroup.controlgroup();
110110

111111
var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
112112
middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),

0 commit comments

Comments
 (0)