mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 19:30:07 +00:00 
			
		
		
		
	some minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									411ed26a25
								
							
						
					
					
						commit
						98f487b93e
					
				| @ -96,18 +96,18 @@ Theme: <button id="theme" onclick="themeToggler()">none</button> | ||||
| 
 | ||||
| <br> | ||||
| 
 | ||||
| <button onclick="drawer.Overlay('body', $('body>.drawer-content').clone())">Global drawer (default)</button> | ||||
| <button onclick="drawer.Overlay('.container', $('body>.drawer-content').clone())">Local drawer</button> | ||||
| <button onclick="drawer.Drawer('body', $('body>.drawer-content').clone())">Global drawer (default)</button> | ||||
| <button onclick="drawer.Drawer('.container', $('body>.drawer-content').clone())">Local drawer</button> | ||||
| 
 | ||||
| 
 | ||||
| <div class="container"> | ||||
| 	<h4>A context for an drawer...<h4> | ||||
| 	<button onclick="drawer.Overlay('.container', $('body>.drawer-content').clone())">Local drawer</button> | ||||
| 	<button onclick="drawer.Drawer('.container', $('body>.drawer-content').clone())">Local drawer</button> | ||||
| </div> | ||||
| 
 | ||||
| 
 | ||||
| <div class="drawer-content"> | ||||
| 	<h3>Overlay</h3> | ||||
| 	<h3>Drawer</h3> | ||||
| 	<button>Sub drawer</button> | ||||
| </div> | ||||
| 
 | ||||
|  | ||||
| @ -5,7 +5,7 @@ | ||||
| **********************************************************************/ | ||||
| 
 | ||||
| define(function(require){ var module = {} | ||||
| console.log('>>> overlay') | ||||
| console.log('>>> drawer') | ||||
| 
 | ||||
| //var DEBUG = DEBUG != null ? DEBUG : true
 | ||||
| 
 | ||||
| @ -16,7 +16,7 @@ var widget = require('./widget') | ||||
| 
 | ||||
| /*********************************************************************/ | ||||
| 
 | ||||
| var OverlayClassPrototype = { | ||||
| var DrawerClassPrototype = { | ||||
| 	make: function(client, options){ | ||||
| 		var that = this | ||||
| 		var overlay = $('<div>') | ||||
| @ -36,7 +36,7 @@ var OverlayClassPrototype = { | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| var OverlayPrototype = { | ||||
| var DrawerPrototype = { | ||||
| 	dom: null, | ||||
| 	client: null, | ||||
| 
 | ||||
| @ -163,11 +163,11 @@ var OverlayPrototype = { | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| var Overlay =  | ||||
| module.Overlay =  | ||||
| var Drawer =  | ||||
| module.Drawer =  | ||||
| object.makeConstructor('Drawer',  | ||||
| 		OverlayClassPrototype,  | ||||
| 		OverlayPrototype) | ||||
| 		DrawerClassPrototype,  | ||||
| 		DrawerPrototype) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user