canmove, Confirmed users
725
edits
| Line 68: | Line 68: | ||
Depending of what type of data you're working with, you might already have GUIDs built into your data that you can make use of. If not, you may have to invent your own mapping from data objects to GUIDs. In this case, you will probably find the <tt>makeGUID()</tt> function (in Utils) useful: | Depending of what type of data you're working with, you might already have GUIDs built into your data that you can make use of. If not, you may have to invent your own mapping from data objects to GUIDs. In this case, you will probably find the <tt>makeGUID()</tt> function (in Utils) useful: | ||
Cu.import("resource:// | Cu.import("resource://services-sync/util.js"); | ||
// ... | // ... | ||
let newGuid = Utils.makeGUID(); | let newGuid = Utils.makeGUID(); | ||