210b5395aa
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 |
||
---|---|---|
.. | ||
src | ||
BUCK | ||
gwt.defs |