Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Removed param "refresh" sent to .controlgroup since it's not a $.widget
Browse files Browse the repository at this point in the history
  • Loading branch information
gseguin committed Jun 25, 2011
1 parent 52a0c10 commit 3b96fa8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/controlgroup/controlgroup_core.js
Expand Up @@ -24,7 +24,7 @@
setup: function() {
this.vcontrolgroup = $( "#vertical-controlgroup" );
this.vcontrolgroup.find( ".ui-btn" ).show();
this.vcontrolgroup.controlgroup("refresh");
this.vcontrolgroup.controlgroup();
}
});

Expand All @@ -33,7 +33,7 @@

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

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

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

var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
Expand Down Expand Up @@ -84,14 +84,14 @@
setup: function() {
this.hcontrolgroup = $( "#horizontal-controlgroup" );
this.hcontrolgroup.find( ".ui-btn" ).show();
this.hcontrolgroup.controlgroup("refresh");
this.hcontrolgroup.controlgroup();
}
});

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

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

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

0 comments on commit 3b96fa8

Please sign in to comment.