accessing methods and properties on an object of a passed element
I hope i can explain what i need better than the subject.
I have an object on the document element that allows for other components to register with it, i have a custom event something along
$(document).bind("register",function(thechild).....
So in the child object when they are created i call
$(document).trigger("register",this);
And indeed i get the DOM object. However i'm looking for the plug in object, i want to be able to call methods on the passed childobject and access it's Config.
Does that make sense? How can i write a plug in that is applied to various objects that also registers itself with an 'overseer' object on the document element in such a way that i can allow that overseer object to call methods on any registered child objects?
any help or pointers would be very much appreciated!
thanks