Closed Bug 908424 Opened 11 years ago Closed 6 years ago

DeviceStorage documentation errors

Categories

(Developer Documentation Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: onecyrenus, Assigned: agore1)

Details

https://developer.mozilla.org/en-US/docs/WebAPI/Device_Storage

The code for enumerate is incorrect: 
It should be something close to below. 

var cursor = pics.enumerate();
cursor.onsuccess = function () {
  if(cursor.result.name !== null) {
    var file = cursor.result;
    console.log("File found: " + file.name);
    // Once we found a file we check if there is other results
    // Then we move to the next result, which call the cursor
    // success with the next file as result.
      this.continue();
    }
}
Component: Help Documentation → General
Product: Firefox → Developer Documentation
Hi I am interested in this bug and want to resolve it. Can you please assign this bug to me?

Thank you
Flags: needinfo?(dolske)
Hi I am interested in this bug and want to resolve it. Can you please assign this bug to me?

Thank you
I have assigned the bug to you, agore1; however, you don't actually need that to happen before you can work on something. Feel free to just dive in and do it. :)
Assignee: nobody → agore1
Flags: needinfo?(dolske)
hi Eric,

Do I need to do the changes on the MDN page directly or I need to clone any repo and make changes in that.
Flags: needinfo?(eshepherd)
(In reply to agore1 from comment #4)
> hi Eric,
> 
> Do I need to do the changes on the MDN page directly or I need to clone any
> repo and make changes in that.

Just click the edit button on MDN and start editing. We have documentation about how to contribute to MDN:

https://developer.mozilla.org/en-US/docs/MDN/Getting_started
https://developer.mozilla.org/en-US/docs/MDN/Contribute

You can also join us on IRC at irc.mozilla.org in the channel #mdn to get help, or talk with our contributors on the dev-mdc mailing list: https://lists.mozilla.org/listinfo/dev-mdc
Flags: needinfo?(eshepherd)
Hi Eric,

I did the change on https://developer.mozilla.org/en-US/docs/WebAPI/Device_Storage

Please review my changes.


Thank you
Flags: needinfo?(eshepherd)
Page has been updated as suggested. Page has since been archived.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(eshepherd)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.