try wrapping it all in an anonymous function

This commit is contained in:
Manuel Friedli 2013-12-09 20:23:48 +01:00
parent 042b282731
commit fc0d70ba1b
1 changed files with 5 additions and 1 deletions

6
uhr.js
View File

@ -17,6 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* @param clockarea Das jQuery-gewrappte HTML-Element, auf dem die Uhr angezeigt werden soll.
* @param themeElement Das HTML-Stylesheet-Tag, das das Theme-CSS referenziert.
*/
(function() {
if (typeof Uhr == 'function') {
return;
}
function Uhr(clockarea, settings) {
this.id = Uhr.id++;
this.timer = null;
@ -339,4 +343,4 @@ function m(letter) {
}
return l(letter, style);
}
})();