Closed
Bug 287441
Opened 20 years ago
Closed 20 years ago
add __LOCATION__ property to help JS components to find their current location
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: shaver, Assigned: shaver)
Details
Attachments
(1 file)
|
1.46 KB,
patch
|
dbradley
:
review+
|
Details | Diff | Splinter Review |
We have some JS components in Calendar that need to find their current path, so that they can subscript-load other files we package in the same dir. This code needs to work in Sunbird, the calendar extensions for Firefox/Tbird/Seamonkey, and in Lightning, so having a way to find the installed path at createInstance time would be very, very helpful. This seems like something that will likely help others as well, since it's one of the few ways to write extension-UUID-agnostic, multi-file JS component code. Patch coming up, it's exactly what you expect.
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #178406 -
Flags: review?(dbradley)
Comment 2•20 years ago
|
||
Comment on attachment 178406 [details] [diff] [review] __LOCATION__ is the nsILocalFile r=dbradley Looks good
Attachment #178406 -
Flags: review?(dbradley) → review+
| Assignee | ||
Comment 3•20 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•