using .each to execute array of functions on .resize
问题 In the an object called Response this works to trigger a function on .ready and .resize simultaneously... Response.action = function ( func ) { if ( typeof func !== 'function' ) { return false; } // If func is not a function, return false. $(function () { func(); $(window).resize( func ); }); // return func; }; // Response.action ...using this to call it: Response.action( myfunc ); function myfunc() { //do stuff } (We worked that out in this thread.) I'd like to make another version that can