Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ext/background.js

Issue 29336084: Issue 2426 - Open block.html as a popup window (Closed)
Patch Set: Rebased, replaced search param with proper messaging Created Feb. 17, 2016, 8:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ext/background.js
diff --git a/ext/background.js b/ext/background.js
index 55ca943f7093a4387d7e6af13bf8fa228250f3e4..f6ce8ce075bae22f0569a1cdd741ee29646ba580 100644
--- a/ext/background.js
+++ b/ext/background.js
@@ -35,20 +35,20 @@
},
keys: function()
{
- return Object.keys(this._map).map(ext._getPage);
+ return Object.keys(this._map).map(ext.getPage);
},
get: function(page)
{
- return this._map[page._id];
+ return this._map[page.id];
},
set: function(page, value)
{
- this._map[page._id] = value;
+ this._map[page.id] = value;
nonEmptyPageMaps[this._id] = this;
},
has: function(page)
{
- return page._id in this._map;
+ return page.id in this._map;
},
clear: function()
{
@@ -57,7 +57,7 @@
},
delete: function(page)
{
- this._delete(page._id);
+ this._delete(page.id);
}
};
« no previous file with comments | « chrome/ext/background.js ('k') | include.postload.js » ('j') | safari/ext/background.js » ('J')

Powered by Google App Engine
This is Rietveld