Is it possible to store jQuery objects inside Object Literal pattern? In my case inside config.
var myApp = {
config: {
disabledElem: $('.disable')
},
init: function () {
someFunction(this.config.disabledElem);
}
};
$(function () {
myApp.init();
});
myAppis initialized, it will work.