On 5月9日, 下午9时42分, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote:
> On 5/9/07, 七星海 <[EMAIL PROTECTED]> wrote:
>
>
>
> > string.prototype.element=function(tagName){
> > var element=document.createElement(tagName || 'div').update(this);
> > return $(element);
> > }
>
> Haha, nice hack! But surely you mean:
           Yes, I mean this. And I also know that writing code must be
careful!
>
> String.prototype.element = function(tagName) {
>   return $(document.createElement(tagName || 'div')).update(this);
>
> }
>
> The code you posted wouldn't work.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" 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/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to