Chromium Code Reviews| Index: chrome/browser/resources/ntp4/tile_page.js |
| =================================================================== |
| --- chrome/browser/resources/ntp4/tile_page.js (revision 96479) |
| +++ chrome/browser/resources/ntp4/tile_page.js (working copy) |
| @@ -500,6 +500,15 @@ |
| }, |
| /** |
| + * Removes all tiles from the page. |
| + */ |
| + removeAllTiles: function() { |
| + while (this.tileElements_.length) { |
|
arv (Not doing code reviews)
2011/08/13 01:02:07
why not use?
this.tileGrid_.innerHTML = '';
csilv
2011/08/13 01:48:17
I've changed this since this is going to be more e
|
| + this.tileGrid_.removeChild(this.tileElements_[0]); |
| + } |
| + }, |
| + |
| + /** |
| * Makes some calculations for tile layout. These change depending on |
| * height, width, and the number of tiles. |
| * TODO(estade): optimize calls to this function. Do nothing if the page is |