<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -54,14 +54,22 @@ local OnUpdate = function(self, elapsed)
 end
 
 local TypeUpdate = function(self, event, i)
+	local type = GetRuneType(i)
+
 	local bar = self.Runes[i]
-	local r, g, b = unpack(self.colors.runes[GetRuneType(i)])
+	local r, g, b = unpack(self.colors.runes[type])
 	bar:SetStatusBarColor(r, g, b)
 
 	if(bar.bg) then
 		local mu = bar.bg.multiplier or 1
 		bar.bg:SetVertexColor(r * mu, g * mu, b * mu)
 	end
+
+	if type then
+		bar:SetScript(&quot;OnUpdate&quot;, OnUpdate)
+	else
+		bar:SetScript(&quot;OnUpdate&quot;, nil)
+	end
 end
 
 local Update = function(self, event, rune)</diff>
      <filename>elements/runebar.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1dae5ec12bc7c6888d17094b3e32bc21f13960dc</id>
    </parent>
  </parents>
  <author>
    <name>unknown</name>
    <email>Chris@.(none)</email>
  </author>
  <url>http://github.com/Zariel/ouf/commit/c6ab82bfccbdce46c2141d1ac86e035d06eaac68</url>
  <id>c6ab82bfccbdce46c2141d1ac86e035d06eaac68</id>
  <committed-date>2009-11-10T03:00:50-08:00</committed-date>
  <authored-date>2009-11-10T03:00:50-08:00</authored-date>
  <message>Check the runetype exists and set an OnUpdate off</message>
  <tree>cf81ff78cd3fd81734bcdeddd028051dfe691b94</tree>
  <committer>
    <name>unknown</name>
    <email>Chris@.(none)</email>
  </committer>
</commit>
