You can duplicate the picEdit object, extend this object, and set jQuery.fn.picEdit to the copy.
the code:
(function(window, document, $, undefined) { // your methods var methods = { sayHi: function(name) { alert("Hello " + name); } }; // duplicate of the extended picEdit var newPicEdit = $.extend($.fn.picEdit, methods) // set jQuery.fn.picEdit $.fn.picEdit = newPicEdit; })(this, this.document, jQuery);
Good luck, hope this helps.
user5870134
source share