Skip to content Skip to sidebar Skip to footer

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'

Solution 1:

You have a small error; it should be $.each(arr, function() { Response.action(this); });

Response.actionSet = function(arr) {
    if(!$.isArray(arr)) return false;
    $.each(arr, function() { Response.action(this); });
    return arr;
};

Post a Comment for "Using .each To Execute Array Of Functions On .resize"