added the first two test methods that actually work!

This commit is contained in:
Manuel Friedli 2015-01-16 17:50:23 +01:00
parent 51d21d8ff6
commit 0c7aebc200
15 changed files with 248 additions and 305 deletions

View file

@ -344,6 +344,16 @@
}.bind(this));
}
};
var destroy = function destroy() {
this.timer = null;
$(this.element)
.removeAttr('style')
.removeAttr('class')
.empty();
$('#uhr-configlink' + this.id).remove();
$('#uhr-controlpanel' + this.id).remove();
};
var setCookie = function setCookie(cookieName, cookieValue) {
var options = {};
if (this.options.cookiePath !== undefined) {
@ -457,7 +467,9 @@
"mode": setMode,
"width": setWidth,
// constructor method
"_create": create
"_create": create,
// destructor method
"_destroy": destroy
});
$.fritteli.uhr.register = uhrGlobals.registerLanguage;
/**