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

Unified Diff: ext/background.js

Issue 6528746257383424: Issue 1708 - Integrate first-run page changes in Chrome/Opera/Safari (Closed)
Patch Set: Rebased patch Created Dec. 18, 2014, 10:12 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
« no previous file with comments | « .hgsubstate ('k') | metadata.common » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/background.js
===================================================================
--- a/ext/background.js
+++ b/ext/background.js
@@ -56,10 +56,17 @@
this._delete(page._id);
}
};
ext._removeFromAllPageMaps = function(pageId)
{
for (var pageMapId in nonEmptyPageMaps)
nonEmptyPageMaps[pageMapId]._delete(pageId);
+
+ ext.onPageRemoved._dispatch(function(page)
+ {
+ return page._id == pageId;
+ });
};
+
+ ext.onPageRemoved = new ext._EventTarget();
})();
« no previous file with comments | « .hgsubstate ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld