addevent not adding the event

Onclick i want to add an event,
This is my code:

scheduler.attachEvent(“onEmptyClick”, function () {
scheduler.addEvent({
start_date: “2012-11-21”,
end_date: “2012-11-22”,
text: “Some”,
custom_data: “some data”
});
return true;
});

But no event is added! what am I missing ?
thanks