From 0a22fd9a758c8920f7ee010c9860df14ce9655eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 25 May 2015 03:00:05 +0200 Subject: [PATCH] Use WCF/Timer/Repeating in WCF/Date/Time/Relative --- wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js b/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js index 253d95f58a..2fdb2b0b86 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js @@ -6,7 +6,7 @@ * @license GNU Lesser General Public License * @module WoltLab/WCF/Date/Time/Relative */ -define(['DOM/ChangeListener', 'Language'], function(DOMChangeListener, Language) { +define(['DOM/ChangeListener', 'Language', 'WoltLab/WCF/Timer/Repeating'], function(DOMChangeListener, Language, Repeating) { "use strict"; var _elements = null; @@ -25,7 +25,7 @@ define(['DOM/ChangeListener', 'Language'], function(DOMChangeListener, Language) this._refresh(); - new WCF.PeriodicalExecuter(this._refresh.bind(this), 60000); + new Repeating(this._refresh.bind(this), 60000); DOMChangeListener.add('WoltLab/WCF/Date/Time/Relative', this._refresh.bind(this)); }, -- 2.20.1