Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3190F18292 for ; Thu, 8 Oct 2015 19:25:45 +0000 (UTC) Received: (qmail 41435 invoked by uid 500); 8 Oct 2015 19:25:45 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 41298 invoked by uid 500); 8 Oct 2015 19:25:45 -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 41289 invoked by uid 99); 8 Oct 2015 19:25:45 -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, 08 Oct 2015 19:25:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E1CFAE0BF0; Thu, 8 Oct 2015 19:25:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pent@apache.org To: commits@flex.apache.org Date: Thu, 08 Oct 2015 19:25:45 -0000 Message-Id: <2f781dc3af02487a9f37467e00acdecc@git.apache.org> In-Reply-To: <79081b193aa1440d8626c02896ecf05d@git.apache.org> References: <79081b193aa1440d8626c02896ecf05d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: [flex-asjs] [refs/heads/develop] - MobileTrader example now fully operational. MobileTrader example now fully operational. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/258e6923 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/258e6923 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/258e6923 Branch: refs/heads/develop Commit: 258e69239b4d4a839c047e05c14903b1e5e80101 Parents: 2997078 Author: Peter Ent Authored: Thu Oct 8 15:25:40 2015 -0400 Committer: Peter Ent Committed: Thu Oct 8 15:25:40 2015 -0400 ---------------------------------------------------------------------- .../flexjs/MobileTrader/src/controller/AlertsViewController.as | 1 + examples/flexjs/MobileTrader/src/models/ProductsModel.as | 3 ++- examples/flexjs/MobileTrader/src/views/AlertsView.mxml | 2 +- examples/flexjs/MobileTrader/src/views/WatchListView.mxml | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/258e6923/examples/flexjs/MobileTrader/src/controller/AlertsViewController.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/MobileTrader/src/controller/AlertsViewController.as b/examples/flexjs/MobileTrader/src/controller/AlertsViewController.as index 254cd18..f8373ca 100644 --- a/examples/flexjs/MobileTrader/src/controller/AlertsViewController.as +++ b/examples/flexjs/MobileTrader/src/controller/AlertsViewController.as @@ -131,6 +131,7 @@ package controller alert.message = "Now @"+alert.stock.last; } } + alerts.itemUpdatedAt(i); } var newEvent:Event = new Event("alertsUpdate"); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/258e6923/examples/flexjs/MobileTrader/src/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/MobileTrader/src/models/ProductsModel.as b/examples/flexjs/MobileTrader/src/models/ProductsModel.as index b6f91ad..f4b2008 100755 --- a/examples/flexjs/MobileTrader/src/models/ProductsModel.as +++ b/examples/flexjs/MobileTrader/src/models/ProductsModel.as @@ -108,7 +108,7 @@ package models stock = new Stock(symbol); _watchList.addItem(stock); - dispatchEvent(new Event("update")); + // dispatchEvent(new Event("update")); updateStockData(stock); return stock; @@ -156,6 +156,7 @@ package models var stock:Stock = _watchList.getItemAt(i) as Stock; if (stock.symbol == sym) { stock.updateFromData(responseData); + _watchList.itemUpdatedAt(i); break; } } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/258e6923/examples/flexjs/MobileTrader/src/views/AlertsView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MobileTrader/src/views/AlertsView.mxml b/examples/flexjs/MobileTrader/src/views/AlertsView.mxml index 96c9b86..3bc76bb 100755 --- a/examples/flexjs/MobileTrader/src/views/AlertsView.mxml +++ b/examples/flexjs/MobileTrader/src/views/AlertsView.mxml @@ -48,7 +48,6 @@ limitations under the License. private function onAlertSet():void { dispatchEvent(new org.apache.flex.events.Event("alertSet")); - dataGrid.model.dispatchEvent(new org.apache.flex.events.Event("dataProviderChanged")); } ]]> @@ -67,6 +66,7 @@ limitations under the License. + +