[Webkit-unassigned] [Bug 38676] Web Inspector: make Web Inspector source code more "modular"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 6 13:19:51 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38676





--- Comment #1 from Pavel Feldman <pfeldman at chromium.org>  2010-05-06 13:19:50 PST ---
I'd support the following plan:
Create a new front-end-2 folder. Move JavaScript classes from the original
folder into this new folder once they conform to the following requirements:

- class depends only on classes from front-end-2
- it enumerates its dependencies declaratively, as in closure library or
similarly (http://code.google.com/closure/library/samples/notepad.js)
- class defines public api using functions not starting with _
- class is "compiler-ready" (i.e. does not mix foo.bar with foo["bar"], etc.).
this might require stopping using getters and setters since minifiers /
compilers do not support them well.
- class belongs to a meaningful namespace (namespace per panel)
- there are no dependencies between panel namespaces (i.e. class that belongs
to elements panel can not explicitly depend on class that belongs to resources,
they should interact using extension points / services / indirections defined
by the platform).
I might add stuff here...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list