I've been looking around and I can't find a clear answer to my situation. So I'm making an iteration on an existing jQuery plugin jquery.autocomplete
So I have a jquery autocomplete plugin with a few things that I need to alter.
Step 1: Need to extend defaults (this works)
$.extend($.Autocompleter.defaults, customeDefaults);
This works, now I want to extend the functions where these defaults would get placed. My hangup involves this:
in the autocomplete I have a setup like this
$.Autocompleter.Select = function() {
//a bunch of stuff in this class including:
function init() {
//this is the function that I need to extend.
}
}
I attempted this
$.extend($.Autocompleter.Select.init, myChanges);
it didn't work Then I did a
console.log($.Autocompleter.Select.init());
and it produced a type error saying that Select had no method init... which it does. Any ideas?