Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3500)

Unified Diff: chrome/browser/resources/ntp4/tile_page.js

Issue 7764013: ntp4: fix app load/unload race condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/tile_page.js
diff --git a/chrome/browser/resources/ntp4/tile_page.js b/chrome/browser/resources/ntp4/tile_page.js
index d99451528b3ee7ba98d5d7520a30580c13853ea2..6a02ed85e2e401c67db8712e27e266b86064930e 100644
--- a/chrome/browser/resources/ntp4/tile_page.js
+++ b/chrome/browser/resources/ntp4/tile_page.js
@@ -265,7 +265,6 @@ cr.define('ntp4', function() {
* Called when an app is removed from Chrome. Animates its disappearance.
*/
doRemove: function() {
- var contents = this.firstChild;
this.firstChild.classList.add('removing-tile-contents');
},
@@ -276,7 +275,7 @@ cr.define('ntp4', function() {
onContentsAnimationEnd_: function(e) {
if (this.firstChild.classList.contains('new-tile-contents'))
this.firstChild.classList.remove('new-tile-contents');
- else if (this.firstChild.classList.contains('removing-tile-contents'))
+ if (this.firstChild.classList.contains('removing-tile-contents'))
this.tilePage.removeTile(this);
},
};
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698