launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05346
Re: YUI 101 question
On Thu, Oct 28, 2010 at 11:19 AM, Curtis Hovey
<curtis.hovey@xxxxxxxxxxxxx> wrote:
> YUI rejects the property aspect of EcmaScript, mad skillz in JS cannot
> be used with YUI. The YUI developers may be enamoured with Java. YUI
> avoids properties and as you have discovered, it removed them :(.
That's not true at all. As Tim said, what you get back from YUI are
Y.Node instances. You can still get the original DOM node through
getDOMNode(). Using the encapsulation provided by Y.Node makes your
code more cross-browser though, because, because the differences
between browser implementations are normalized internally and hidden
from you.
Of course, if you have mad skillz and want to use them, it won't
prevent you from doing so. But it should be generally frowned upon
IMO.
-- Sidnei
References