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 uhr = this;
|
||||
renderer.render(this, function () {
|
||||
uhr._currentMinute = -1;
|
||||
uhr.currentMinute = -1;
|
||||
update(uhr);
|
||||
});
|
||||
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) {
|
||||
this._currentMinute = -1;
|
||||
this.currentMinute = -1;
|
||||
if (time === null) {
|
||||
this.options.time = new Date();
|
||||
} else {
|
||||
|
@ -119,7 +119,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
var create = function create() {
|
||||
this.id = uhrGlobals.id++;
|
||||
this.timer = null;
|
||||
this._currentMinute = -1;
|
||||
this.currentMinute = -1;
|
||||
var userTime = this.options.time;
|
||||
if (this.options.time === undefined) {
|
||||
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) {
|
||||
if (isOn(uhr)) {
|
||||
var time = uhr.options.time;
|
||||
if (time.getMinutes() === uhr._currentMinute) {
|
||||
if (time.getMinutes() === uhr.currentMinute) {
|
||||
return;
|
||||
}
|
||||
uhr._currentMinute = time.getMinutes();
|
||||
uhr.currentMinute = time.getMinutes();
|
||||
show(uhr, time);
|
||||
} else {
|
||||
clear(uhr);
|
||||
uhr._currentMinute = -1;
|
||||
uhr.currentMinute = -1;
|
||||
}
|
||||
};
|
||||
var show = function show(uhr, time) {
|
||||
|
|
Loading…
Reference in a new issue