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

Unified Diff: common/extensions/docs/static/content_scripts.html

Issue 196079: Typo fixes, plus a couple of code changes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/chrome/
Patch Set: Created 11 years, 3 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 | « no previous file | common/extensions/docs/static/manifest.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/extensions/docs/static/content_scripts.html
===================================================================
--- common/extensions/docs/static/content_scripts.html (revision 25878)
+++ common/extensions/docs/static/content_scripts.html (working copy)
@@ -124,8 +124,8 @@
// Also listen for new channels from the extension for when the button is
// pressed.
-chrome.extension.onConnect.addListener(function(port, name) {
- console.assert(name == "buttonClickedChannel");
+chrome.extension.onConnect.addListener(function(port) {
+ console.assert(port.name == "buttonClickedChannel");
port.onMessage.addListener(function(msg) {
if (msg.buttonClicked) {
e.value = msg.passwordValue;
@@ -174,9 +174,9 @@
customEvent.initEvent('myCustomEvent', true, true);
function fireCustomEvent(data) {
- hidenDiv = document.getElementById('myCustomEventDiv');
- hidenDiv.innerHTML = data
- hidenDiv.dispatchEvent(customEvent);
+ hiddenDiv = document.getElementById('myCustomEventDiv');
+ hiddenDiv.innerHTML = data
+ hiddenDiv.dispatchEvent(customEvent);
}</pre>
<pre>contentscript.js
« no previous file with comments | « no previous file | common/extensions/docs/static/manifest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698