Closed
Bug 1160770
Opened 10 years ago
Closed 10 years ago
Unnecessary return in tabScrolling property in XPFE autocomplete.xml.
Categories
(SeaMonkey :: Autocomplete, defect)
SeaMonkey
Autocomplete
Tracking
(firefox40 fixed)
RESOLVED
FIXED
seamonkey2.37
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: philip.chee, Assigned: philip.chee)
References
Details
Attachments
(1 file)
1.53 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
Sat May 02 2015 21:51:07
Warning: SyntaxError: unreachable code after return statement
Source file: chrome://global/content/autocomplete.xml
Line: 279, Column: 47
Source code:
return this.setAttribute('tabscrolling', val); return val;
(From Bug 1155055 comment #0)
> https://dxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/
> autocomplete.xml#306
> > <property name="tabScrolling"
> > onset="return this.setAttribute('tabscrolling', val); return val;"
> > onget="return this.getAttribute('tabscrolling') == 'true';"/>
>
> onset returns the value returned from setAttribute, which is void.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8600601 -
Flags: review?(neil)
Updated•10 years ago
|
Attachment #8600601 -
Flags: review?(neil) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Why the return val; at all?
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.37
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to :Ms2ger from comment #4)
> Why the return val; at all?
I don't know. Firefox also does it this way:
http://hg.mozilla.org/mozilla-central/diff/ad8fc5dffc9c/toolkit/content/widgets/autocomplete.xml
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/58e10a572314
Unnecessary return in tabScrolling property in XPFE autocomplete.xml NPOTB r=Neil DONTBUILD
You need to log in
before you can comment on or make changes to this bug.
Description
•