I have a class:
function x() { this.initialize = function () { } this.filterSelection = function (event, ui) { } }
I intercept the filterSelection method for other elements through:
$(item).on("click", this, this.filterSelection );
When filterSelection is called, event.data strong> points to an instance of my class.
Now I need to call filterSelection manually from the initialize () method.
How can I do this to set the correct parameters?
source share