I have an existing jQuery plugin, now I want to extend it. Consider the below mentioned plugin:
$.fn.x = function(option) {
        var defaults = {
            a: 1,
            b: 2
        };
        option = $.extend(def, option);
        function abc() {
            //do something
        }
        function def() {
            //do something
        }
    };
Now the above one is the plugin I got from somewhere. I need to have custom behavior for abc method, say
function abc() {
                //do something else
            }
I don't want to change the existing plugin, Can you tell me how could I achieve the same by extending the same or by making my own custom plugin ?
 
     
     
    