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

Issue 29334778: Issue 3532 - Improved preformance of icon animation and fixed a memory leak (Closed)

Created:
Jan. 27, 2016, 6:57 p.m. by Sebastian Noack
Modified:
Jan. 28, 2016, 12:48 p.m.
Reviewers:
kzar
Visibility:
Public.

Description

Issue 3532 - Improved preformance of icon animation and fixed a memory leak

Patch Set 1 #

Total comments: 17

Patch Set 2 : Added missing newline #

Patch Set 3 : Moved and renamed functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -26 lines) Patch
M lib/icon.js View 1 2 4 chunks +39 lines, -26 lines 0 comments Download

Messages

Total messages: 4
Sebastian Noack
https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js File lib/icon.js (left): https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js#oldcode120 lib/icon.js:120: function playAnimation(frames) If you don't mind, I'd also like ...
Jan. 27, 2016, 7:09 p.m. (2016-01-27 19:09:20 UTC) #1
kzar
https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js File lib/icon.js (left): https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js#oldcode120 lib/icon.js:120: function playAnimation(frames) On 2016/01/27 19:09:20, Sebastian Noack wrote: > ...
Jan. 28, 2016, 9:51 a.m. (2016-01-28 09:51:04 UTC) #2
Sebastian Noack
https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js File lib/icon.js (left): https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js#oldcode120 lib/icon.js:120: function playAnimation(frames) On 2016/01/28 09:51:04, kzar wrote: > On ...
Jan. 28, 2016, 10:14 a.m. (2016-01-28 10:14:22 UTC) #3
kzar
Jan. 28, 2016, 10:19 a.m. (2016-01-28 10:19:58 UTC) #4
LGTM

https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js
File lib/icon.js (right):

https://codereview.adblockplus.org/29334778/diff/29334779/lib/icon.js#newcode128
lib/icon.js:128: onActivated = page => {
On 2016/01/28 10:14:21, Sebastian Noack wrote:
> On 2016/01/28 09:51:04, kzar wrote:
> > Arrow functions  are for anonymous functions, if it needs a name surely it's
> > better to use the old syntax?
> 
> We have to assign to the global variable onActivated here. So |function
> onActivated() {}| wouldn't work. So yes, we need an anonymous function here,
> that we assign to a global variable.
> 
> (Also shouldn't there be a newline before the
> > opening "{"?)
> 
> Done.

Acknowledged.

Powered by Google App Engine
This is Rietveld