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

Unified Diff: chrome/browser/resources/ntp_search/thumbnail_page.js

Issue 11438009: NTP5: Refactoring appData to use Tile's data implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Dan's comments Created 8 years 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/ntp_search/thumbnail_page.js
diff --git a/chrome/browser/resources/ntp_search/thumbnail_page.js b/chrome/browser/resources/ntp_search/thumbnail_page.js
index 7a438d674ee672a26c3fef7176bdab85b13ba9e7..77ab17fccc5fcb3b2a7d49e6f63373bcacb159b5 100644
--- a/chrome/browser/resources/ntp_search/thumbnail_page.js
+++ b/chrome/browser/resources/ntp_search/thumbnail_page.js
@@ -56,8 +56,9 @@ cr.define('ntp', function() {
* Update the appearance of this tile according to |data|.
* @param {Object} data A dictionary of relevant data for the page.
*/
- setData: function(data) {
- Tile.prototype.setData.apply(this, arguments);
+ set data(data) {
+ Object.getOwnPropertyDescriptor(Tile.prototype, 'data').set.apply(this,
+ arguments);
this.formatThumbnail_(data);
},

Powered by Google App Engine
This is Rietveld 408576698