Error in Class.addMethods doc example
Reported by martin overmars | May 15th, 2008 @ 03:28 PM | in Inline documentation
Hi there,
at http://www.prototypejs.org/api/c... the doc tells you to write " $super(name, 'hissssssssss');" on contrary to http://www.prototypejs.org/api/c... (which shows the same part of the function)
I guess it has to be: '$super(name);'
When learning to work with classes, which i'm trying, it might be confusing =D
thank you, martin
Comments and changes to this ticket
-
John-David Dalton August 25th, 2008 @ 04:13 PM
- → Assigned user changed from to Tobie Langel
- → Tag changed from to addmethods api docs mistake
- → Milestone changed from to Inline documentation
The bug is on http://www.prototypejs.org/api/class/addMethods
var ringneck = new Snake("Ringneck", "hissssssss"); ringneck.speak(); // Should be var ringneck = new Snake("Ringneck"); ringneck.speak(); -
John-David Dalton August 25th, 2008 @ 04:14 PM
- → Title changed from small bug in documentation script to Error in Class.addMethods doc example
-
John-David Dalton August 25th, 2008 @ 04:14 PM
- → State changed from new to doc
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
