Suffice it to say, I'm wanting to branch my plugin writing a bit, and decided I want to be able to "namespace" them. So far, rewriting the $.method ones to $.namespace.method has been easy.
The problem I'm having is making Element Methods such as $('element').method(), but to use a namespace; for example $('element').namespace.method(). I've tried a few workarounds and can create $.fn.namespace.method, however, when I call this from within that method, I only get $.fn.namespace and not the 'element' that I'd like to get.
Example: If i call $('body').namespace.test(), then inside method test, I want this to be the element <body></body>
Any help figuring out how to pull this off much appreciated. Probably just over-thinking things as usual.
Currently trying possible work-arounds for something like $('body').namespace().method(), thus far, not working so well ... :P
namespaceTest). If real namespacing is so important to you, then I'm afraid you can't use jQuery's prototype.$.fn.myMethod(/* function code */);which you then call like$("div").myMethod()?$("div").myNameSpace.myMethod();"The problem I'm having is making Element Methods such as $('element').method()"