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 Feb. 28, 2014, 6:41 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
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;

Powered by Google App Engine
This is Rietveld