I am doing the following:
elemDrop: function(elem) {
return elem;
},
elemAddRel: function(json) {
var elem = this.elemDrop;
console.log(elem);
$(elem.item[0]).addClass('showTab').attr('rel', json.pageId);
},
However when i console.log 'elem', it just stores the entire function into a variable. How can i actually store the result of the function into the variable?
this.elemDrop?this.chuckDropcould be initialized somewhere else in the said object.this.chunkDropa reference tothis.elemDrop?