Marius Hein c905b1f490 Test and move bootstrapping/web code to source tree
Move code from incubator to web. Only files needed to show
welcome moved.

refs #4249
2013-06-17 08:49:27 +02:00

27 lines
700 B
JavaScript

(function() {
"use strict";
var Timer = function() {
this.resolution = 1000; // 1 second resolution
this.containers = {
};
this.registerContainer = function(container) {
this.containers[container.attr('container-id')] = container;
};
var tick = function() {
for(var container in this.containers) {
var el = this.containers[container];
// document does not exist anymore
if(!jQuery.contains(document.documentElement, el[0])) {
delete this.containers[container];
continue;
}
}
};
};
})();