On Tue, Oct 4, 2011 at 10:26 AM, Mike Samuel <[email protected]> wrote:
> 2011/10/4 Russell Leggett <[email protected]>: > > On Tue, Oct 4, 2011 at 12:51 PM, Mike Samuel <[email protected]> > wrote: > > > >> No it doesn't. > >> > >> Just walk the object graph starting from the root object and let the > >> set of all reachable symbols be A. > >> Load jQuery > >> Walk the object graph again letting the set of all reachable symbols be > B. > >> > >> The public API of jQuery is then (B - A). > > > > That's works fine under 2 conditions: > > > > 1. You're willing to execute code instead of statically analyze it > > 2. You're capable of executing that code in isolation. > > This should be true for most libraries out there. > It obviously doesn't hold for user code and definitely not for all > code in an IDE since IDE's have to deal with code during editing. > I'm not a jQuery person, but as far as I can tell jQuery introduces only one global value so the jQuery API is just the properties of that object at the point in the program where the developer needs to use jQuery. You don't have to execute code and the only graph you need to walk is the properties of one object. jjb
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

