Chromium Code Reviews| Index: chrome/browser/resources/print_preview/search/destination_list_item.js |
| diff --git a/chrome/browser/resources/print_preview/search/destination_list_item.js b/chrome/browser/resources/print_preview/search/destination_list_item.js |
| index 9f843ee0288191b2626bbc01bcff4b65a18c8575..66a18ce10bf2367bd8c7b28806c6f90e98286536 100644 |
| --- a/chrome/browser/resources/print_preview/search/destination_list_item.js |
| +++ b/chrome/browser/resources/print_preview/search/destination_list_item.js |
| @@ -11,11 +11,11 @@ cr.define('print_preview', function() { |
| * events to. |
| * @param {!print_preview.Destination} destination Destination data object to |
| * render. |
| - * @param {RegExp} query Active filter query. |
| + * @param {RegExp=} opt_query Active filter query. |
| * @constructor |
| * @extends {print_preview.Component} |
| */ |
| - function DestinationListItem(eventTarget, destination, query) { |
| + function DestinationListItem(eventTarget, destination, opt_query) { |
| print_preview.Component.call(this); |
| /** |
| @@ -34,10 +34,10 @@ cr.define('print_preview', function() { |
| /** |
| * Active filter query text. |
| - * @type {RegExp} |
| + * @type {?RegExp} |
|
Aleksey Shlyapnikov
2014/09/22 23:25:13
RegExp is an object and it's not typedefed, right?
Vitaly Pavlenko
2014/09/23 00:11:30
Oh, I was confused with @typedef stuff. You're rig
|
| * @private |
| */ |
| - this.query_ = query; |
| + this.query_ = opt_query || null; |
| /** |
| * FedEx terms-of-service widget or {@code null} if this list item does not |