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

Unified Diff: chrome/browser/resources/print_preview/print_preview_utils.js

Issue 10450022: Print Preview Print Destination Search Widget (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Set --bary flag Created 8 years, 7 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
Index: chrome/browser/resources/print_preview/print_preview_utils.js
diff --git a/chrome/browser/resources/print_preview/print_preview_utils.js b/chrome/browser/resources/print_preview/print_preview_utils.js
index 35bb80a40feb292fbfdbe6e58245c04023b59695..14eec327457fbad5a4eb3236077bc27806e17350 100644
--- a/chrome/browser/resources/print_preview/print_preview_utils.js
+++ b/chrome/browser/resources/print_preview/print_preview_utils.js
@@ -192,12 +192,12 @@ function pageSetToPageRanges(pageSet) {
* @param {boolean} isVisible Whether the element should be visible or not.
*/
function setIsVisible(element, isVisible) {
- element.style.display = isVisible ? '' : 'none';
+ element.hidden = !isVisible;
}
/**
- * @param {Array.<object>} array Array to check for item.
- * @param {object} item Item to look for in array.
+ * @param {!Array} array Array to check for item.
+ * @param {*} item Item to look for in array.
* @return {boolean} Whether the item is in the array.
*/
function arrayContains(array, item) {

Powered by Google App Engine
This is Rietveld 408576698