I created this function to read a hash,

var ReadHash = Class.create();
ReadHash.prototyte = {
        initialize: function(data){
        read: function(){
                this.data.each(function(pair) {
                        alert(pair.key + ' = "' + pair.value + '"');
var ReadMyData = Class.create();
ReadMyData.prototype = Object.extend(new ReadHash(),{
        initialize: function(data){
var TestReadHash = new ReadMyData($H({ var1: 'foo1', var2: 'foo2' }));

the problem is that it does not recognize the function
TestReadHash.read ();
It would be helpful if detected the error and spend 4 hours reviewing
and not to understand that I am wrong
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to