Having completely lost the plot I need a little help.
I want to create my own class (called class_FaxPageNumber). I want it
to work like a prototype Object (i.e. have inspect() and stuff).
I've got my initialize() method (along with the 5 other methods this
class uses).
My code starts ...
var class_FaxPageNumber = Class.create();
class_FaxPageNumber.prototype = {
initialize: function()
{
...
},
/* More methods here. */
}
But this doesn't give me a .inspect() method and there is no
Object.create() method.
Running in circles.
NOTE: I only want to define the class to inherit the Object methods.
I have different code which will actually use this class - the class
is going to be part of a library with other scripts using it as they
need.
Regards,
Richard Quadling.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---