So i cannot get this to work in a fiddle (because the owner seems to disallow external reffing of his library), so I fear I have to stick to prosa and some snippets. Basically I want to use the anytime plugin for time selection, looks like this:
Good thing is, is accurate by the minute, which is a requirement. It does destroy the tabbing behaviour though. If you tab, you tab into the time selector. Which is unwanted in 99% of all cases I can come up with. I broke it down that I have to overwrite this function:
var AnyTime = {};
AnyTime.picker = function(id, option){
__pickers[id] =
{
key: function (event) {
//apply patch, e.g. if(key === 9){return;}
}
}
Is there a way I can do this from the outside, without having to destroy his file? e.g. when I update the file, I don't wanna have to think of updating this function
Is my question clear? I want to keep his file as is, and then from one of my files call something like this (won't work obviously):
var tempKeyFunc = AnyTime.picker.__pickers[id].key;
AnyTime.picker.__pickers[id].key = function(){
if(key === 9)
{
return;
}else{
tempKeyFunc();
}