Q:

How to apply a method to an entire object literal?

How do you apply a method to all properties of an object literal?
For Example:
var ObjL = {
    x: $("someSelector > .x"),
    y: $("someSelector > .y"),
    otherx: $("someOtherSelector > .x"),
    othery: $("someOtherSelector > .y"),
    ...
    ...
    ...
    }
// <---something like ObjL.css("background-color","red") would go here

Would you just use ObjL.someMethod()?
Could you do this with an array?

A:

If I understand you correctly, you want to apply a method aMethod to an element? The best solution IMHO is a foreach loop:
$.each($obj, function(prop, value) {
    //call a method here, being the same on value or this.
    value.css(blablabla, blablabla);
});

(deliberately i did not use the for loop since 1. u're using jquery and it's shorter, and 2. it has many problems regarding the owned or inherited-by-proto properties).
EDIT: yes, you can use a $.each loop as well for arrays. an alternative is using a regular for-counter loop (for(initial;condition;increment){ code }), since using for(in) loops in arrays lead to unexpected results.

