Closed Bug 456961 Opened 18 years ago Closed 18 years ago

change |const kNonStringDataLength = 4;| into a var

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 453220

People

(Reporter: bugzilla.lenochod, Unassigned)

Details

Past Mail and Newsgroup load on SeaMonkey 2.0a1pre is show in Error Console: Error: redeclaration of const kNonStringDataLength Source File: chrome://global/content/nsDragAndDrop.js Line: 4 Description from IRC of Ratty: On trunk nsTransferable.js is mapped to nsDragAndDrop.js. Older code loads both to use drag and drop but Gecko 1.9 moved all the code to nsDragAndDrop.js. If older code tries to load both (actually now the same file) you could get the CONST redeclaration error. anyway your error message is due to changeset 18445:ab3c77a02ed0 in mozilla-central
gavin: This occurs in SeaMonkey 2.0a because it comes with two extensions, chatzilla and venkman, both of which (for backward compatibility reasons) load nsTransferable.js as well as nsDragAndDrop.js. It was suggested in #seamonkey that since kNonStringDataLength is only referenced once, you could move the constant into the function that references this.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
V.Duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.