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

Unified Diff: client/dom/scripts/template_wrapping_dom.js

Issue 8301007: Convert cache property from array to object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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
« no previous file with comments | « client/dom/generated/wrapping_dom.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/template_wrapping_dom.js
diff --git a/client/dom/scripts/template_wrapping_dom.js b/client/dom/scripts/template_wrapping_dom.js
index 1634ff35b583a180128f77b53d33065702e8b214..de3ad5967757f4fcfa93bf1ae0190b0f43e2f03b 100644
--- a/client/dom/scripts/template_wrapping_dom.js
+++ b/client/dom/scripts/template_wrapping_dom.js
@@ -221,7 +221,7 @@ function __dom_get_cached(hashtablename, obj, isolatetoken) {
function __dom_set_cached(hashtablename, obj, isolatetoken, value) {
var hashtable;
if (!obj.hasOwnProperty(hashtablename)) {
- hashtable = [];
+ hashtable = {};
obj[hashtablename] = hashtable;
} else {
hashtable = obj[hashtablename];
« no previous file with comments | « client/dom/generated/wrapping_dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698