Closed Bug 711956 Opened 13 years ago Closed 12 years ago

Improve docs for the preference-service reset method

Categories

(Add-on SDK Graveyard :: Documentation, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: noitidart, Assigned: erikvvold)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243

Steps to reproduce:

read doc on pref reset here:
https://addons.mozilla.org/en-US/developers/docs/sdk/1.3/packages/api-utils/docs/preferences-service.html#set(name%2C value)


Actual results:

didn't get full info, it just said: "Clears a non-default, user-set value from the application preference name. If no user-set value is defined on name, the function does nothing."


Expected results:

it should have said:
"Clears a non-default, user-set value from the application preference name. If no user-set value is defined on name, the function does nothing. If no default value exists the preference will cease to exist."

Please notice the last sentence. It is from here:
https://developer.mozilla.org/en/nsIPrefBranch#clearUserPref%28%29

Special thanks to ZER0 for this help!
This is an SDK issue, refiling to appropriate component.
Component: Add-on Builder → Documentation
Product: addons.mozilla.org → Add-on SDK
QA Contact: add-on-builder → documentation
Version: 1.0 → unspecified
Assignee: nobody → erikvvold
Severity: normal → enhancement
Priority: -- → P3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: improve doc on reset → Improve docs preference-service reset method
Summary: Improve docs preference-service reset method → Improve docs for the preference-service reset method
Pointer to Github pull-request
Attachment #608971 - Flags: review?(wbamberg)
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/fa2f497d4f9809e72b2e8de96e0ecb7f3e5b9f06
Merge pull request #386 from erikvold/bug-711956

Bug 711956 Improve docs for the preference-service reset method
Attachment #608971 - Flags: review?(wbamberg) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: