[Prototype-core] Re: There is no Class.extend in the latest release.

2009-01-11 Thread kangax
On Jan 10, 9:30 pm, Tim Woo tim.b...@gmail.com wrote: Hi, I just started looking at the Prototype. But I've got Class.extend is not a function when I practiced on it. I double checked and the There's no `Class.extend` in Prototype.js as of now. prototype.js was included in the html file.

[Prototype-core] Re: There is no Class.extend in the latest release.

2009-01-11 Thread Tobie Langel
The proper syntax is Class.create. Not Class.extend nor new Class. For more info, see: http://prototypejs.org/api/class/create and http://prototypejs.org/learn/class-inheritance Best, Tobie On Jan 11, 5:52 pm, Yanick yanick.roc...@gmail.com wrote: The old Class.extend was replaced by :

[Prototype-core] Re: There is no Class.extend in the latest release.

2009-01-11 Thread Tim Woo
Hi everyone, I'm practicing on an example from chapter 8 of Practical Prototype and Script.aculo.us. The code wants to add an instance method to the Quarterback class. It uses Class.extend to add a method in the Quarterback, but I didn't get it work as the error in my first post. After referenced