Closed Bug 251955 Opened 21 years ago Closed 21 years ago

There is an error in install function

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: g.bitten, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 There is an error in install funtion on page: http://www.mozilla.org/projects/firefox/extensions/web-api.html It is missing a brace ("}") character in function install, if any one use this sample code, there will be a javascript error. I corrected the code adding line 07: ------------------- 01 function install (aEvent) 02 { 03 var params = { 04 "Bar": { URL: aEvent.target.href, 05 IconURL: aEvent.target.getAttribute("iconURL"), 06 toString: function () { return this.URL; } 07 } 08 }; 09 InstallTrigger.install(params); 10 11 return false; 12 } Reproducible: Always Steps to Reproduce: 1. 2. 3.
reassigning endico's bugs to default owner
Assignee: endico → mozilla.webmaster
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.