Is there a way to pass a jQuery function as a parameter?
<p>I have a function to which I want to pass a custom jQuery function that was attached to the jQuery prototype: $.fn. </p>

<p>For example,</p>

<pre><code>$.fn.customFx = function() {
  //do something...    
}

function foo(func1) {
  //do something...
  $(selector).func1();
}

$(document).ready(function() {
  foo($.fn.customFx);
}
</code></pre>

<p>Is such a thing possible?</p>
