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.
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 :
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