renamed _currentMinute to currentMinute
This commit is contained in:
		
							parent
							
								
									60e68ffeaf
								
							
						
					
					
						commit
						df9e435da3
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		
							
								
								
									
										12
									
								
								js/uhr.js
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								js/uhr.js
									
										
									
									
									
								
							|  | @ -87,7 +87,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|             var renderer = new UhrRenderer(language(this), this.element.find('.letterarea')); |             var renderer = new UhrRenderer(language(this), this.element.find('.letterarea')); | ||||||
|             var uhr = this; |             var uhr = this; | ||||||
|             renderer.render(this, function () { |             renderer.render(this, function () { | ||||||
|                 uhr._currentMinute = -1; |                 uhr.currentMinute = -1; | ||||||
|                 update(uhr); |                 update(uhr); | ||||||
|             }); |             }); | ||||||
|             setCookie(this, 'uhr-language', languageKey); |             setCookie(this, 'uhr-language', languageKey); | ||||||
|  | @ -103,7 +103,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|         } |         } | ||||||
|     }; |     }; | ||||||
|     var setTime = function setTime(time) { |     var setTime = function setTime(time) { | ||||||
|         this._currentMinute = -1; |         this.currentMinute = -1; | ||||||
|         if (time === null) { |         if (time === null) { | ||||||
|             this.options.time = new Date(); |             this.options.time = new Date(); | ||||||
|         } else { |         } else { | ||||||
|  | @ -119,7 +119,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|     var create = function create() { |     var create = function create() { | ||||||
|         this.id = uhrGlobals.id++; |         this.id = uhrGlobals.id++; | ||||||
|         this.timer = null; |         this.timer = null; | ||||||
|         this._currentMinute = -1; |         this.currentMinute = -1; | ||||||
|         var userTime = this.options.time; |         var userTime = this.options.time; | ||||||
|         if (this.options.time === undefined) { |         if (this.options.time === undefined) { | ||||||
|             this.options.time = new Date(); |             this.options.time = new Date(); | ||||||
|  | @ -272,14 +272,14 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|     var update = function update(uhr) { |     var update = function update(uhr) { | ||||||
|         if (isOn(uhr)) { |         if (isOn(uhr)) { | ||||||
|             var time = uhr.options.time; |             var time = uhr.options.time; | ||||||
|             if (time.getMinutes() === uhr._currentMinute) { |             if (time.getMinutes() === uhr.currentMinute) { | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             uhr._currentMinute = time.getMinutes(); |             uhr.currentMinute = time.getMinutes(); | ||||||
|             show(uhr, time); |             show(uhr, time); | ||||||
|         } else { |         } else { | ||||||
|             clear(uhr); |             clear(uhr); | ||||||
|             uhr._currentMinute = -1; |             uhr.currentMinute = -1; | ||||||
|         } |         } | ||||||
|     }; |     }; | ||||||
|     var show = function show(uhr, time) { |     var show = function show(uhr, time) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue