Who is Noone? :P

Personally, I agree that it seems pointless to have isParent around when
isChild will do the same thing. I don't even think the alias is needed, if
someone wanted the semantics that would provide, let them alias it
themselves, I say.

There is my opinion, for what little it is worth.

Jason Bunting


> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Per Cederberg
> Sent: Friday, October 17, 2008 2:29 PM
> To: MochiKit
> Subject: [mochikit] Re: MochiKit.DOM.isChildNode and isParent
> 
> 
> Noone has opinions on this?
> 
> Cheers,
> 
> /Per
> 
> On Wed, Oct 8, 2008 at 3:51 PM, Per Cederberg <[EMAIL PROTECTED]> wrote:
> > The two functions MochiKit.DOM.isChildNode and isParent have both been
> > added in version 1.4 of MochiKit (not yet stable). But they are
> > virtually identical (except for a few bugs I'm in fixing right now).
> > The only difference, according to the API docs, as far as I can tell
> > is:
> >
> > isChildNode(node, node) --> true
> > isParent(node, node) --> false
> >
> > Is it not pointless to keep both functions around? Since isChildNode()
> > is more tested (and probably more used), I'd suggest removing
> > isParent() from the API before the 1.4 release. Possibly, in order to
> > simplify the transition, we could just alias isParent to isChildNode
> > (and remove the API doc specification so that noone will use it from
> > now on).
> >
> > Opinions?
> >
> > Cheers,
> >
> > /Per
> >
> > PS. I just discovered that Google Groups silently dropped all my
> > emails that used another sender address, so I'm currently resending
> > all my recent postings. Hence the sudden email bombing...
> >
> 
> > 
> 
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.173 / Virus Database: 270.8.1/1730 - Release Date: 10/17/2008
> 8:07 AM


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to