you can use apply()

example :

var el = $('#myDiv')[0];
var myFunc = function () {
  console.log(this);
};

myFunc.apply(el, [{type : "",  target : el}]);

i stumbled on this when looking through the trigger function.

probably not the best use of it, however i though it might be usefull.

-Byron

Reply via email to