Hello, just posted on trac. sorry for duplication.

I started using prototype.js for the first time. Excuse my amateurness
i cant seem to figure this one out.

With prototype.js included in doc It affects my previous JS code. Now
JS Variables which were defined by the value of a function, have
instead adopted the function method. So when i output the variable it
prints out the function content... But this does not happen all the
time. and i;ve had trouble recreating a simple example to blog.

E.g. This is sort of an example... this will work.

var name = print();

function print()
{
        return "print";
}

alert( "print" );

// output:
// ------------
// print


However in my script it would output the whole function like.
.
// output:
// ------------
// function print(){    return "print";}


I presume this is a novice error.

Thankyou A


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

Reply via email to