Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: iconAnimation.js

Issue 5749582424178688: Ported over anti-adblock message notification (Closed)
Patch Set: Created March 21, 2014, 1:29 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/ext/background.js ('k') | lib/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: iconAnimation.js
===================================================================
--- a/iconAnimation.js
+++ b/iconAnimation.js
@@ -20,22 +20,22 @@
_animatedTabs: new TabMap(),
_step: 0,
- update: function(severity)
+ update: function(type)
{
- if (severity == this._severity)
+ if (type == this._type)
return;
- if (!this._severity)
+ if (!this._type)
this._start();
- this._severity = severity;
+ this._type = type;
},
stop: function()
{
clearInterval(this._interval);
delete this._interval;
- delete this._severity;
+ delete this._type;
this._animatedTabs.clear();
},
@@ -121,7 +121,7 @@
if (this._step > 0)
{
- var suffix = "-notification-" + this._severity;
+ var suffix = "-notification-" + this._type;
if (this._step < 10)
suffix += "-" + this._step;
« no previous file with comments | « chrome/ext/background.js ('k') | lib/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld