Hello all,
Given the following code:
var clicklink = Class.create( {
onmousedown : function(e){
alert('here');
Event.stop(e);
},
initialize : function() {
$$("span").each(function(item, index) {
Event.observe(item, 'mousedown', this.onmousedown,
false);
});
}
});
var clink = new clicklink();
I'm getting the following error when a span is clicked:
handler has no properties file:prototype.js Line 3842
Prototype version = '1.6.0.2'
What am I not understanding?
Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---