Repository: flex-asjs Updated Branches: refs/heads/develop b4ef3e4ad -> 24f0a2409
- Clean up ChartExample Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/24f0a240 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/24f0a240 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/24f0a240 Branch: refs/heads/develop Commit: 24f0a24094bb0c6c369dae4b6491f4aadbe4ed04 Parents: b4ef3e4 Author: piotrz <[email protected]> Authored: Tue Mar 14 22:11:21 2017 +0100 Committer: piotrz <[email protected]> Committed: Tue Mar 14 22:11:21 2017 +0100 ---------------------------------------------------------------------- .../src/main/flex/MyInitialView.mxml | 27 +++++++++----------- .../src/main/flex/SpeedTestView.mxml | 5 +--- .../src/main/flex/models/ProductsModel.as | 4 +-- 3 files changed, 14 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/24f0a240/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml b/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml index 17e2e09..20da02d 100644 --- a/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml +++ b/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml @@ -19,29 +19,26 @@ limitations under the License. --> <js:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - initComplete="testit()" - > + initComplete="onInitComplete(event)"> <fx:Script> <![CDATA[ - - import models.ProductsModel; - - private function testit():void - { - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(50); - waveChart.dataProvider = m.wave1; - } - + import models.ProductsModel; + + import org.apache.flex.events.Event; + + private function onInitComplete(event:Event):void + { + var m:ProductsModel = applicationModel as ProductsModel; + m.generateWaves(50); + waveChart.dataProvider = m.wave1; + } ]]> </fx:Script> <fx:Style> @namespace js "library://ns.apache.org/flexjs/basic"; .AllCharts { - border-width: 0px; + border-width: 1px; padding-left: 2px; padding-top: 10px; padding-bottom: 2px; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/24f0a240/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml b/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml index 4b8f77d..f213c1a 100644 --- a/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml +++ b/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml @@ -18,10 +18,7 @@ limitations under the License. --> <js:View xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - > + xmlns:js="library://ns.apache.org/flexjs/basic"> <fx:Script> <