/*
 ---

 name: StepperIterator

 script: stepper.iterator.js

 description: MUI - Iterator used by MUI.Stepper.

 copyright: (c) 2011 AndrÃ© Fiedler <kontakt@visualdrugs.net>

 license: MIT-style license in (/MIT-LICENSE.txt).

 note:
 This documentation is taken directly from the javascript source files. It is built using Natural Docs.

 requires:
 - Core/Element
 - Core/Class
 - Core/Options
 - Core/Events
 - MUI
 - MUI.Core

 provides: [MUI.StepperIterator]
 ...
 */

MUI.StepperIterator = new NamedClass('MUI.StepperIterator', {

	index: 0,

	rewind: function() {
		this.index = 0;
	},
	
	set: function(value) {
		this.index = value.toInt();
	},
	
	validate: function(value) {
		if(typeOf(value) === 'integer')
			return true;
		var intv = parseInt(value, 10);
		var floatv = parseFloat(value, 10);
		return !isNaN(intv) && (floatv == intv);
	},
	
	current: function() {
		return this.index;
	},
	
	hasNext: function() {
		return true;
	},
	
	hasPrevious: function() {
		return true;
	},
	
	next: function() {
		this.index++;
		return this.index;
	},
	
	previous: function() {
		this.index--;
		return this.index;
	}
});
@@ -532,17 +532,20 @@
 or', %7B%0A%0A
-%09
+    
 index: 0
@@ -547,17 +547,20 @@
 ex: 0,%0A%0A
-%09
+    
 rewind: 
@@ -564,34 +564,40 @@
 d: function() %7B%0A
-%09%09
+        
 this.index = 0;%0A
@@ -596,23 +596,32 @@
 ex = 0;%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 set: fun
@@ -631,26 +631,32 @@
 on(value) %7B%0A
-%09%09
+        
 this.index =
@@ -671,23 +671,32 @@
 oInt();%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 validate
@@ -715,18 +715,24 @@
 alue) %7B%0A
-%09%09
+        
 if(typeO
@@ -759,11 +759,20 @@
 r')%0A
-%09%09%09
+            
 retu
@@ -780,18 +780,24 @@
 n true;%0A
-%09%09
+        
 var intv
@@ -820,18 +820,24 @@
 e, 10);%0A
-%09%09
+        
 var floa
@@ -864,18 +864,24 @@
 e, 10);%0A
-%09%09
+        
 return !
@@ -913,23 +913,32 @@
  intv);%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 current:
@@ -943,34 +943,40 @@
 t: function() %7B%0A
-%09%09
+        
 return this.inde
@@ -978,23 +978,32 @@
 .index;%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 hasNext:
@@ -1008,34 +1008,40 @@
 t: function() %7B%0A
-%09%09
+        
 return true;%0A%09%7D,
@@ -1037,23 +1037,32 @@
 n true;%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 hasPrevi
@@ -1079,18 +1079,24 @@
 ion() %7B%0A
-%09%09
+        
 return t
@@ -1100,23 +1100,32 @@
 n true;%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 next: fu
@@ -1127,34 +1127,40 @@
 t: function() %7B%0A
-%09%09
+        
 this.index++;%0A%09%09
@@ -1157,18 +1157,24 @@
 ndex++;%0A
-%09%09
+        
 return t
@@ -1188,15 +1188,24 @@
 ex;%0A
-%09%7D,%0A%09%0A%09
+    %7D,%0A    %0A    
 prev
@@ -1223,18 +1223,24 @@
 ion() %7B%0A
-%09%09
+        
 this.ind
@@ -1249,10 +1249,16 @@
 --;%0A
-%09%09
+        
 retu
@@ -1276,9 +1276,12 @@
 ex;%0A
-%09
+    
 %7D%0A%7D)

replace all tabs by spaces