Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B78E8200B72 for ; Thu, 11 Aug 2016 22:26:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B6520160A93; Thu, 11 Aug 2016 20:26:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E4913160AB5 for ; Thu, 11 Aug 2016 22:26:27 +0200 (CEST) Received: (qmail 23992 invoked by uid 500); 11 Aug 2016 20:26:27 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 23844 invoked by uid 99); 11 Aug 2016 20:26:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2016 20:26:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C36ADE3839; Thu, 11 Aug 2016 20:26:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Thu, 11 Aug 2016 20:26:29 -0000 Message-Id: <268a674bfdf9496f8d65ffd715377eb4@git.apache.org> In-Reply-To: <892c06161ac5439c9f7daf82dc848b0e@git.apache.org> References: <892c06161ac5439c9f7daf82dc848b0e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/7] git commit: [flex-asjs] [refs/heads/refactor-sprite] - Backed out previous change that was adversely affecting the SWF version. archived-at: Thu, 11 Aug 2016 20:26:28 -0000 Backed out previous change that was adversely affecting the SWF version. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/895f3666 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/895f3666 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/895f3666 Branch: refs/heads/refactor-sprite Commit: 895f36663e890f12ed15a5bfce5917f779a840cf Parents: 4ef1bb4 Author: Peter Ent Authored: Fri Aug 5 14:16:10 2016 -0400 Committer: Peter Ent Committed: Fri Aug 5 14:16:10 2016 -0400 ---------------------------------------------------------------------- .../flex/html/supportClasses/DataItemRenderer.as | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/895f3666/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as index 71d534a..8b4ad5b 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataItemRenderer.as @@ -138,23 +138,19 @@ package org.apache.flex.html.supportClasses { super.updateRenderer(); - var color:uint = ValuesManager.valuesImpl.getValue(this, "background-color", "selected"); - background.graphics.clear(); - background.graphics.beginFill(color, (down||selected||hovered)?1:0); + background.graphics.beginFill(useColor, (down||selected||hovered)?1:0); background.graphics.drawRect(0, 0, width, height); background.graphics.endFill(); } COMPILE::JS { - if (selected) { - element.className = element.className + " selected"; - } - else { - if (element.className.endsWith(" selected")) { - element.className = element.className.replace(" selected", ""); - } - } + if (selected) + element.style.backgroundColor = '#9C9C9C'; + else if (hovered) + element.style.backgroundColor = '#ECECEC'; + else + element.style.backgroundColor = null; } }