YUI
Max Kanat-Alexander
mkanat at bugzilla.org
Thu Nov 29 03:51:42 UTC 2007
I just checked in our first patch that uses YUI, the Yahoo
JavaScript Library:
https://bugzilla.mozilla.org/show_bug.cgi?id=397099
Here's what you should know about YUI, as we're going to use it
in Bugzilla:
* All JavaScript that can use YUI should do so, instead of
writing custom code.
* YUI ships with a skin for its various elements, called
"sam". All HTML elements that contain a YUI object should have
class="yui-skin-sam" in order to render correctly.
* Stable versions of Bugzilla may not upgrade to new major
releases of YUI (say, from 2.3 -> 2.4) but may upgrade to bug-fix
releases (say, from 2.3.0 -> 2.3.1).
* We are currently using YUI 2.3.1. If you upgrade any part of
YUI to a newer version, you must upgrade all of it to that newer
version.
* YUI is separated out into many files. We only include the
files in Bugzilla that we actually use.
* The files are set up in our directory structure in such a way
that they can be skinned with our skinning system.
* We use the css and image files from the YUI "build/assets/"
directory, for anybody else who's going to be adding new parts of YUI
in the future.
* When you add a CSS file, you have to make sure that any
images referenced in that CSS (usually png files) have the correct
path. In the standard YUI, they are listed in the CSS with a relative
path that doesn't work for us.
* We use the "minified" version of the YUI files, where all
spaces, comments, and newlines have been removed. This makes them load
faster.
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
More information about the developers
mailing list