Closed
Bug 806770
Opened 13 years ago
Closed 13 years ago
Strict mode warning in richlistbox.xml
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: Yoric, Assigned: darkowlzz)
Details
(Whiteboard: [mentor=Yoric][lang=js])
Attachments
(1 file, 1 obsolete file)
|
1.27 KB,
patch
|
Details | Diff | Splinter Review |
When executing test browser_urlbarAutoFillTrimURLs.js, I get the following warning:
JavaScript Warning: "in strict mode code, functions may be declared only at top level or immediately within another function" {file: "chrome://global/content/bindings/richlistbox.xml" line: 63 column: 23 source: " function getId(aItem) { return aItem.id; }
"}
It looks like this could be changed trivially by turning the definition to «
let getId = function getId(aItem) { return aItem.id; }
»
| Reporter | ||
Updated•13 years ago
|
Summary: Warning in richlistbox.xml: → Strict mode warning in richlistbox.xml
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #704336 -
Flags: review?(dteller)
| Reporter | ||
Updated•13 years ago
|
Assignee: nobody → indiasuny000
| Reporter | ||
Comment 2•13 years ago
|
||
Comment on attachment 704336 [details] [diff] [review]
Modified getId definition
Review of attachment 704336 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks :)
Attachment #704336 -
Flags: review?(dteller) → review+
| Assignee | ||
Updated•13 years ago
|
Attachment #704336 -
Flags: checkin?(dteller)
| Reporter | ||
Comment 3•13 years ago
|
||
Comment on attachment 704336 [details] [diff] [review]
Modified getId definition
Review of attachment 704336 [details] [diff] [review]:
-----------------------------------------------------------------
You should format the patch as per the following guidelines:
http://blog.bonardo.net/2010/06/22/so-youre-about-to-use-checkin-needed
Attachment #704336 -
Flags: checkin?(dteller)
| Assignee | ||
Comment 4•13 years ago
|
||
Patch formatted as per the guidelines.
Attachment #704336 -
Attachment is obsolete: true
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 5•13 years ago
|
||
Keywords: checkin-needed
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•