handler has no properties

wte
Wed, 30 Jan 2008 19:46:34 -0000

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.