You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/03/24 20:59:41 UTC
[20/37] git commit: [flex-asjs] [refs/heads/spark] - fix example
fix example
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c313d706
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c313d706
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c313d706
Branch: refs/heads/spark
Commit: c313d70661022e8b14a474cd33eb4db57d655df8
Parents: 063ac08
Author: Alex Harui <ah...@apache.org>
Authored: Mon Feb 29 17:52:12 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Feb 29 17:52:12 2016 -0800
----------------------------------------------------------------------
.../src/productsView/CatalogTitleButtons.mxml | 8 +++++---
.../src/productsView/ProductCatalogThumbnail.mxml | 2 +-
.../src/productsView/ProductListItem.mxml | 10 ++++++++++
3 files changed, 16 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c313d706/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
index 77456be..af9cfd1 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
@@ -35,12 +35,14 @@ limitations under the License.
[Bindable]
public var cartCount:int;
- private function rollOverLabel(event:Event):void
+ private function rollOverLabel(event:MouseEvent):void
{
- Label(event.target).className = "catalogTitleButtonHighlighted";
+ try {
+ Label(event.target).className = "catalogTitleButtonHighlighted";
+ } catch (e:Error) {}
}
- private function rollOutLabel(event:Event):void
+ private function rollOutLabel(event:MouseEvent):void
{
Label(event.target).className = "catalogTitleButtonDeselected";
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c313d706/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
index 1d8ce8f..7b415da 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
@@ -118,7 +118,7 @@ limitations under the License.
}
}
- public function clickHandler(event:org.apache.flex.events.Event):void
+ public function clickHandler(event:org.apache.flex.events.MouseEvent):void
{
if (event.target != purchase &&
event.target != compare &&
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c313d706/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
index 2864cca..8e98c3b 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
@@ -60,6 +60,16 @@ limitations under the License.
{
_data = value;
}
+
+ public function get listData():Object
+ {
+ return null;
+ }
+
+ public function set listData(value:Object):void
+ {
+ // not used
+ }
private var _itemRendererParent:Object;