Does anybody know of there's a way to reference the value of a sibling key in a JavaScript object literal?
so use the value of target
in the beforeNext()
function here:
obj: {
target: 'li.player a.icon-tag',
parent: 'ul#drop_list',
beforeNext: function(){
target.addClass('bind active');
}
}
this.target
? – Tamp