try wrapping it all in an anonymous function
This commit is contained in:
		
							parent
							
								
									042b282731
								
							
						
					
					
						commit
						fc0d70ba1b
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										6
									
								
								uhr.js
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								uhr.js
									
										
									
									
									
								
							|  | @ -17,6 +17,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  * @param clockarea   Das jQuery-gewrappte HTML-Element, auf dem die Uhr angezeigt werden soll. |  * @param clockarea   Das jQuery-gewrappte HTML-Element, auf dem die Uhr angezeigt werden soll. | ||||||
|  * @param themeElement Das HTML-Stylesheet-Tag, das das Theme-CSS referenziert. |  * @param themeElement Das HTML-Stylesheet-Tag, das das Theme-CSS referenziert. | ||||||
|  */ |  */ | ||||||
|  | (function() { | ||||||
|  | if (typeof Uhr == 'function') { | ||||||
|  | 	return; | ||||||
|  | } | ||||||
| function Uhr(clockarea, settings) { | function Uhr(clockarea, settings) { | ||||||
| 	this.id = Uhr.id++; | 	this.id = Uhr.id++; | ||||||
| 	this.timer = null; | 	this.timer = null; | ||||||
|  | @ -339,4 +343,4 @@ function m(letter) { | ||||||
| 	} | 	} | ||||||
| 	return l(letter, style); | 	return l(letter, style); | ||||||
| } | } | ||||||
| 
 | })(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue