Ok. Then maybe better following code
var $board = $('.i-role-board-body');
var $card = $board.find('.i-role-card
[data-entity-id="' + currentCard.Id + '"]');
$card.find('.tau-card-header-container').css('background', color);
$card.find('.tau-card-header-container
a.tau-id').css('cssText', "color: #000000 !important");

$card.find('.tau-card-v2__section:first').css('background', color);



2013/10/28 Jonathan Enzinna <notifications@github.com>

> In Impending Doom/Impending Doom.js:
>
> > +				return _.uniq(_.reduce(this.cards, function(running, card) {
> > +					running.push(card.data('entityType'));
> > +					return running;
> > +				}, []));
> > +			};
> > +
> > +            this.cardAdded = function(eventName, sender) {
> > +                this.cards.push(sender.element);
> > +                this.refreshDebounced(this._ctx);
> > +            };
> > +
> > +            this.colorCard = function(currentCard) {
> > +                var color = this.getCardColor(_.find(currentCard.CustomFields, function(field) { return field.Name === "Due Date"; }).Value);
> > +				console.log(color);
> > +                if (color) {
> > +                    $('div.tau-card[data-entity-id="' + currentCard.Id + '"] .tau-card-header-container').css('background', color);
>
> I can't say I agree with that. Should we wish to reuse .tau-card with an
> element other than a
> in the future, it could cause problems.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/TargetProcess/TP3MashupLibrary/pull/10/files#r7260537>
> .
>