From 89b853d9b321f2bdc49719948d9192b109b79d76 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 18 Oct 2010 15:41:15 +0100 Subject: [PATCH] Fix a bug with updating the coord feed throttle --- TomTom.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index aa3fccf..fc38dcf 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -173,10 +173,6 @@ function TomTom:ADDON_LOADED(event, addon) local coordFeedFrame = CreateFrame("Frame") local throttle, counter = self.db.profile.feeds.coords_throttle, 0 - function TomTom:UpdateCoordFeedThrottle() - throttle = self.db.profile.feeds.coords_throttle - end - coordFeedFrame:SetScript("OnUpdate", function(self, elapsed) counter = counter + elapsed if counter < throttle then @@ -195,6 +191,10 @@ function TomTom:ADDON_LOADED(event, addon) end end +function TomTom:UpdateCoordFeedThrottle() + throttle = self.db.profile.feeds.coords_throttle +end + function TomTom:ReloadOptions() -- This handles the reloading of all options self.profile = self.db.profile -- 1.7.9.5