gerrit/gerrit-gwtui
Shawn Pearce 210b5395aa Make it easy to construct CSS and HTML from JavaScript plugins
Scoping CSS rules across plugins can be slightly tricky, as the
namespace is global for the entire browser window.  Allow plugins to
create unique names using Gerrit.css() and then use those inside of
HTML with class="{style.foo}" style replacements in the Gerrit.html()
function.

This style of development makes native HTML and CSS more natural
to use inside of a plugin's JavaScript, and reduces the risks of
conflicting CSS rules with core Gerrit or another plugin.

Event handler registration is also supported, making it easier to
attach functions to handle onclick for buttons and anchors.  Handler
registration avoids circular references between the function's
environment and the DOM node, ensuring garbage collection works.

Change-Id: Ic29a4ec0c15eedef4f4ce72031193f1896742dc5
2014-03-06 22:07:54 -08:00
..
src Make it easy to construct CSS and HTML from JavaScript plugins 2014-03-06 22:07:54 -08:00
BUCK Introduce Gerrit gwtui common project 2014-02-17 22:54:00 +01:00
gwt.defs Rename DEFS files to *.defs 2013-07-30 17:18:33 +00:00