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

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/gallery.js

Issue 8727028: Eliminate use of assignments to innerHTML in File Browser (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Deleted another redundant file Created 9 years, 1 month 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
Index: chrome/browser/resources/file_manager/js/image_editor/gallery.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/gallery.js b/chrome/browser/resources/file_manager/js/image_editor/gallery.js
index 5e820fa9a60a4ba868817709f4345ebfd08bf444..82d6abc2eb7d1261e19bdfcbf0908951f1d985af 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/gallery.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/gallery.js
@@ -46,7 +46,7 @@ Gallery.prototype = { __proto__: RibbonClient.prototype };
Gallery.open = function(parentDirEntry, items, selectedItem,
closeCallback, metadataProvider, shareActions, displayStringFunction) {
var container = document.querySelector('.gallery');
- container.innerHTML = '';
+ ImageUtil.removeChildren(container);
var gallery = new Gallery(container, closeCallback, metadataProvider,
shareActions, displayStringFunction);
gallery.load(parentDirEntry, items, selectedItem);

Powered by Google App Engine
This is Rietveld 408576698