Error widget inheritance
Error widget inheritance
Hi
i'm trying to create my own widget from ui.tabs this is the code:
$.widget("ui.mantecaoTabview", $.extend({}, $.ui.tabs.prototype, {
prueba: function(){
alert('executed....');
return 'test ejecutada';
}
}));
$.extend($.ui.mantecaoTabview,$.ui.tabs);
$("#rotator").mantecaoTabview({
fx:{opacity: "toggle"},
spinner: '',
load: function(e, ui){
e.prueba();
}
});
i don't get what is wrong with my code, could you help me. Firebug
return this error:
"e.prueba is not a function"
e.prueba();