Commits

Dirkjan Ochtman committed 905038b

Fix status bar icon blinking.

Comments (0)

Files changed (1)

chrome/content/overlay.js

 	
 	blink: function(num) {
 		
-		setTimeout('this.blink', 5000, 0);
-		if ((this.prefs.getIntPref('status.state') == 0) || (!this.prefs.getBoolPref('status.enabled'))) {
+		if ((CopyReflex.prefs.getIntPref('status.state') == 0) || (!CopyReflex.prefs.getBoolPref('status.enabled'))) {
 			return;
 		}
 		
 			return;
 		}
 		
-		if (panel.getAttribute('src') == 'chrome://copyreflex/skin/enabled.png') {
-			panel.setAttribute('src', 'chrome://copyreflex/skin/blank.png');
+		if (panel.getAttribute('image') == 'chrome://copyreflex/skin/enabled.png') {
+			panel.setAttribute('image', 'chrome://copyreflex/skin/blank.png');
 		} else {
-			panel.setAttribute('src', 'chrome://copyreflex/skin/enabled.png');
+			panel.setAttribute('image', 'chrome://copyreflex/skin/enabled.png');
 		}
 		
-		setTimeout('this.blink', 300, num - 1);
+		setTimeout(CopyReflex.blink, 300, num - 1);
 		
 	}