Closed Bug 1090205 Opened 11 years ago Closed 11 years ago

Move getReversedHost from Bookmarks.jsm to PlacesUtils

Categories

(Toolkit :: Places, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: ahameez, Assigned: ahameez)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Attachment #8512678 - Flags: review?(mak77)
Cancelled the last try because I put in the wrong try syntax. Here is the updated try run. https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=77bedb1dda9a
Comment on attachment 8512678 [details] [diff] [review] bug1090205_move_getReversedHost.diff Review of attachment 8512678 [details] [diff] [review]: ----------------------------------------------------------------- thanks! please set checkin-needed when ready. ::: toolkit/components/places/PlacesUtils.jsm @@ +392,5 @@ > + * @param url > + * the URL to generate a rev host for. > + * @return the reversed host string. > + */ > + getReversedHost: function(url) { nit: you can use a shorthand here (part of ES6) getReversedHost(url) { return url.host.split("").reverse().join("") + "."; }, or you could even do getReversedHost(url) url.host.split("").reverse().join("") + ".",
Attachment #8512678 - Flags: review?(mak77) → review+
Attachment #8512678 - Attachment is obsolete: true
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: