renamed _currentMinute to currentMinute

This commit is contained in:
Manuel Friedli 2014-07-03 21:20:20 +02:00
parent 60e68ffeaf
commit df9e435da3

View file

@ -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) {