cleanup and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									751df786e5
								
							
						
					
					
						commit
						e1881b85c6
					
				| @ -175,6 +175,7 @@ function(evt, id){ | |||||||
| // 		- scroll into view the dragged element
 | // 		- scroll into view the dragged element
 | ||||||
| // 		- bound it by screen
 | // 		- bound it by screen
 | ||||||
| // XXX need to check if element already set as movable...
 | // XXX need to check if element already set as movable...
 | ||||||
|  | // XXX does it make sence to abstract out the bounds checking code???
 | ||||||
| // XXX docs...
 | // XXX docs...
 | ||||||
| HTMLElement.prototype.moveable =  | HTMLElement.prototype.moveable =  | ||||||
| function(options={}){ | function(options={}){ | ||||||
| @ -353,36 +354,6 @@ function(options={}){ | |||||||
| 	document.addEventListener('mouseup', handleMoveEnd) } | 	document.addEventListener('mouseup', handleMoveEnd) } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| // 	cmpRects(<rect>, <rect>)
 |  | ||||||
| // 		-> 'contained'
 |  | ||||||
| // 		-> 'contains'
 |  | ||||||
| // 		-> 'intersect'
 |  | ||||||
| // 		-> 'appart'
 |  | ||||||
| // XXX should these pe separate checks -- speed???
 |  | ||||||
| var cmpRects = function(rect, container){ |  | ||||||
| 	// XXX
 |  | ||||||
| } |  | ||||||
| var Containment = function(elem, parent){ |  | ||||||
| 	return Object.assign( |  | ||||||
| 		this instanceof Containment ? |  | ||||||
| 			obj |  | ||||||
| 			: { __proto__: Containment.prototype }, |  | ||||||
| 		{ |  | ||||||
| 			elem, |  | ||||||
| 			parent, |  | ||||||
| 		}) } |  | ||||||
| Containment.prototype = { |  | ||||||
| 	// update rectangle data...
 |  | ||||||
| 	update: function(){ |  | ||||||
| 		// XXX
 |  | ||||||
| 		return self }, |  | ||||||
| 	check: function(){ |  | ||||||
| 		// XXX
 |  | ||||||
| 	}, |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| //---------------------------------------------------------------------
 | //---------------------------------------------------------------------
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user