Hello cracks,
I would like to give a function-name as an option to my
element.implement.
element.implement shout execute the function.
with my code, I have always the error that <make> is not a function.
whats wrong?
her my code:
function incubeHover() {
incube_hover.toggleClass('hover');
}
Element.implement({
letterhover: function(options){
var myOptions = options || {},
make = myOptions.make || function(){};
...
this.addEvents({
mouseleave: function(e){
make();
},
click: function(e){
}
});
}
});
and here is my call:
creator.letterhover({
'make' : 'incubeHover()'
});
thx for any help