On Jul 2, 2008, at 17:11 , Ryan Gahl wrote:

> Why would Class.create() copy static class members to the prototype?  
> That doesn't make any sense. That completely rules out the  
> possibility that the developer, you know, wanted them to remain  
> static...

As far as I know, that's how Class.create works. See 
http://prototypejs.org/learn/class-inheritance 
  and more particularly the Defining class methods section: "There is  
no special support for class methods in Prototype 1.6.0. Simply define  
them on your existing classes". Then the example shows how class  
methods need to be defined _after_ the Class.create() call.

Antoine


--~--~---------~--~----~------------~-------~--~----~
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