Chromium Code Reviews| Index: chrome/browser/resources/ntp_search/apps_page.js |
| diff --git a/chrome/browser/resources/ntp_search/apps_page.js b/chrome/browser/resources/ntp_search/apps_page.js |
| index 21c40213361bd2f7a32474af1c2894a4a18237ba..a52cee271415cfb2bc34b95fc9d12c1b2921c9cf 100644 |
| --- a/chrome/browser/resources/ntp_search/apps_page.js |
| +++ b/chrome/browser/resources/ntp_search/apps_page.js |
| @@ -185,14 +185,17 @@ cr.define('ntp', function() { |
| /** |
| * Creates a new App object. |
| + * @param {Object} opt_data The data representing the app. |
|
Dan Beam
2012/12/14 18:28:13
@param {Object=}
pedro (no code reviews)
2012/12/14 18:54:10
Done.
|
| * @constructor |
| * @extends {HTMLDivElement} |
| */ |
| - function App(data) { |
| + function App(opt_data) { |
| var el = cr.doc.createElement('div'); |
| el.__proto__ = App.prototype; |
| el.initialize_(); |
| - el.data = data; |
| + |
| + if (opt_data) |
| + el.data = opt_data; |
| return el; |
| } |