like i said before, make the syntax simpler is important, but keep the code
understandable and explicit is even more.

On Sat, Sep 27, 2008 at 1:21 AM, Ariel Flesler <[EMAIL PROTECTED]> wrote:

>
> Agree that giving a jQuery object to val() to copy its val/text is
> completely confusing.
> Shortcuts are nice but I think we need to keep the methods intuitive.
>
> --
> Ariel Flesler
> http://flesler.blogspot.com/
>
> On Sep 26, 4:16 pm, Cloudream <[EMAIL PROTECTED]> wrote:
> > I meant this syntax ( $("#id").val(another jQuery Object) ) is a
> > little confused, at least incompatible with living syntax of jQuery.
> > ( .append(jQuery Object) )
> >
> > Brandon's way seems better, is it a selective clone() function?
> >
> > Maybe we expand this too much, just return val() || text() from $
> > ("#id") is enough.  :D
> >
> > On Sep 27, 2:58 am, "John Resig" <[EMAIL PROTECTED]> wrote:
> >
> > > > $("#one").html( $("#two") );
> > > > == $("#one").html( $("#two").html() ); or == $("#one").html( $
> > > > ("#two").val() || $("#two").text() ); ?
> >
> > > I don't propose changing .html(). You can already do:
> > > $("#jq-header").html( $("#jq-content") )
> >
> > > It's equivalent to doing:
> > > $("#jq-header").empty().append( $("#jq-content") )
> >
> > > (which works)
> >
> > > > What about:
> > > > $("#one").css("color",$("#two")) == $("#one").css("color", $
> > > > ("#two").css("color") )
> >
> > > Sure, this one is understandable.
> >
> > > > $("#one").bind("click",$("#two")) == $("#one").bind("click", click
> > > > function of $("#two") )
> >
> > > I'm not sure what you're shooting for here. Maybe something like:
> >
> > > $("#one").bind("click", $("#two")) ==
> > >   $("#one").bind("click", function(){ $("#two").trigger("click"); });
> >
> > > But that reminds me. I've been wanting this for a long time:
> >
> > > $("#one").click(false);
> >
> > > Which is equal to:
> >
> > > $("#one").click(function(){ return false; });
> >
> > > --John
> >
>


-- 
E. Myller ( www.emyller.net )

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

Reply via email to