Skip to content
This repository
Browse code

Removed param "refresh" sent to .controlgroup since it's not a $.widget

  • Loading branch information...
commit 3b96fa8cd18a215ed09594a5293f1d63508f02b4 1 parent 52a0c10
Ghislain Seguin authored June 24, 2011
12  tests/unit/controlgroup/controlgroup_core.js
@@ -24,7 +24,7 @@
24 24
 		setup: function() {
25 25
 			this.vcontrolgroup = $( "#vertical-controlgroup" );
26 26
 			this.vcontrolgroup.find( ".ui-btn" ).show();
27  
-			this.vcontrolgroup.controlgroup("refresh");
  27
+			this.vcontrolgroup.controlgroup();
28 28
 		}
29 29
 	});
30 30
 
@@ -33,7 +33,7 @@
33 33
 
34 34
 		//We hide the first button and refresh
35 35
 		this.vcontrolgroup.find( ".ui-btn" ).first().hide();
36  
-		this.vcontrolgroup.controlgroup("refresh");
  36
+		this.vcontrolgroup.controlgroup();
37 37
 
38 38
 		var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
39 39
 			middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
@@ -50,7 +50,7 @@
50 50
 
51 51
 		//We hide the last button and refresh
52 52
 		this.vcontrolgroup.find( ".ui-btn" ).last().hide();
53  
-		this.vcontrolgroup.controlgroup("refresh");
  53
+		this.vcontrolgroup.controlgroup();
54 54
 
55 55
 		var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
56 56
 			middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
@@ -84,14 +84,14 @@
84 84
 		setup: function() {
85 85
 			this.hcontrolgroup = $( "#horizontal-controlgroup" );
86 86
 			this.hcontrolgroup.find( ".ui-btn" ).show();
87  
-			this.hcontrolgroup.controlgroup("refresh");
  87
+			this.hcontrolgroup.controlgroup();
88 88
 		}
89 89
 	});
90 90
 
91 91
 	test( "horizontal controlgroup after first button was hidden", function() {
92 92
 		//We hide the first button and refresh
93 93
 		this.hcontrolgroup.find( ".ui-btn" ).first().hide();
94  
-		this.hcontrolgroup.controlgroup("refresh");
  94
+		this.hcontrolgroup.controlgroup();
95 95
 
96 96
 		var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
97 97
 			middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
@@ -106,7 +106,7 @@
106 106
 	test( "horizontal controlgroup after last button was hidden", function() {
107 107
 		//We hide the last button and refresh
108 108
 		this.hcontrolgroup.find( ".ui-btn" ).last().hide();
109  
-		this.hcontrolgroup.controlgroup("refresh");
  109
+		this.hcontrolgroup.controlgroup();
110 110
 
111 111
 		var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
112 112
 			middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),

0 notes on commit 3b96fa8

Please sign in to comment.
Something went wrong with that request. Please try again.