Hello. I would like to know if it's possible to extend jQuery like that :
// Init os $.os = $.os || {}; $.extend($.os, { version : 'foo', event : function(event){ return event.xxx; } core : false }); // Play with os console.log( 'os: ' + $.os.version ); I'm unabble to add some functions to the $.os object and get 'this' element : // Extend os $.extend($.os, { fix : function(){ this.html( 'os on: ' + this.tagName ); } }); I would like to call it like that : $('body').os.fix() $.os.event() Does anybody know what to do ? I really need something like that to make my code simple to understand. Thanks