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:

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