This is what I have that I'm trying to access:
$("some_element").bind("change", some_func);
What I'm doing now returns an object, but does not allow you to call it like you normally can when assigning an anonymous function:
//Anonymous function storing
var func = function() {
//Blah
};
//What I'm currently doing to try and access the function bound to some_element
var func = $("some_element").bind("change");
Which just returns:
alert(func); //[object Object]
I'd assume that's because it returns as an object, but not necessarily a function? Or maybe jQuery doesn't allow doing this?
UPDATE: Edited original question for clarity. The suggestion I found floating around the web is to use the $._data method for retrieving all information about events; HOWEVER, the articles (on StackOverflow, mostly) I read touting what method the modern version of jQuery supports do not work.
What I need to do is somehow get some_func and be able to call it elsewhere in my script:
//First accessing
var some_func = $("some_element").bind("click");
//Then calling elsewhere
some_func.apply();