Class ConnectCommand
				
				
			
				
				
				
					
Defined in:  ConnectCommand.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
								ConnectCommand(objectId, typeOfObject, property, previousValue, currentValue)
							 Object that is used to undo actions when a figure is connected to a connector | 
| Method Attributes | Method Name and Description | 
|---|---|
| redo()
								 This method got called every time the Redo is requested. | |
| undo()
								 This method should be called every time an Undo is requested. | 
					Class Detail
				
				
				
						ConnectCommand(objectId, typeOfObject, property, previousValue, currentValue)
				
				
				
					Object that is used to undo actions when a figure is connected to a connector
					
Author: Zack Newsham zack_newsham@yahoo.co.uk, Alex.
				 
				
				
				
				
					
						Author: Zack Newsham zack_newsham@yahoo.co.uk, Alex
- Parameters:
- objectId
- {Object} the object/number to identify the object upon the connect will act. In this case is an array for the composite key of a glue [id1, id2]
- typeOfObject
- {Number} - the type of Command, usually History.OBJECT_GLUE. For more see History.OBJECT_etc.
- property
- {String} - the property that changed
- previousValue
- {Object} - previous object value
- currentValue
- {Object} - current object value
					Method Detail
				
				
					 
					
					
					
					redo()
					
					
					
						This method got called every time the Redo is requested.
Undo for Connecting means that we need to delete the glue
						
						
					
					
					
					
						
						
						
						
						
						
						
					
					
					
					undo()
					
					
					
						This method should be called every time an Undo is requested.
Redo means to recreate the Glue