564
edits
| Line 56: | Line 56: | ||
// perhaps we add this functionality to the 'current tab' object or all tabs | // perhaps we add this functionality to the 'current tab' object or all tabs | ||
// | // results is an iterator-like object with length properties | ||
function callback(results) { | |||
dump(results.count); // 3 | |||
for (let item in results) { | |||
insertIntoDOM(results[item]); | |||
// insertIntoDOM is a defined by you to display the | |||
// result item (bookmark or history object) | |||
} | |||
results[2].remove(); | |||
results[1].title = "Groucho, we hardly knew ye!"; | |||
results[1].tag("myhero"); // auto saves tags | |||
results[1].tags(); // returns ["myhero", "mustachioed-funny-guys",] | |||
results[1].save(); // called to make all changes permanent | |||
} | |||
jetpack.places.fetch({ where:bookmarks, | jetpack.places.fetch({ where:bookmarks, | ||
tags: ["marx-brothers"] }, callback); | tags: ["marx-brothers"] }, callback); | ||
edits