From: Tim Düsterhus Date: Mon, 25 May 2015 01:00:05 +0000 (+0200) Subject: Use WCF/Timer/Repeating in WCF/Date/Time/Relative X-Git-Tag: 3.0.0_Beta_1~2310^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a22fd9a758c8920f7ee010c9860df14ce9655eb;p=GitHub%2FWoltLab%2FWCF.git Use WCF/Timer/Repeating in WCF/Date/Time/Relative --- 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)); },