27
edits
m (typo) |
|||
| Line 9: | Line 9: | ||
Any edit you perform to a bookmark item in a Places View is generally undo-able using the undo command (and then subsequently re-doable). To take advantage of this in your code, you need to use one of the <code>Places*Transaction</code>s defined in <code>controller.js</code>, rather than just using the data APIs directly. | Any edit you perform to a bookmark item in a Places View is generally undo-able using the undo command (and then subsequently re-doable). To take advantage of this in your code, you need to use one of the <code>Places*Transaction</code>s defined in <code>controller.js</code>, rather than just using the data APIs directly. | ||
== | == Constructing a Transaction == | ||
To create a new folder called "Foo" at the end of the Bookmarks Toolbar, you might write code that looks like this: | To create a new folder called "Foo" at the end of the Bookmarks Toolbar, you might write code that looks like this: | ||
edits