On Thu, Mar 12, 2009 at 1:57 PM, Ojan Vafai <o...@chromium.org> wrote:
> Why put all the methods in the global scope instead of on objects (e.g.
> ChromeBookmarks.getAll())?

They are on objects: The proposal is, eg:

window.extensions.bookmarks.getAllBookmarks() (getAll() would work too).

The reason to not put them on the Bookmark struct is that the core
idea is the difference between a service-style API and an OO-style
API. In the service-style API, the objects are just data.

- a

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to