You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/05/01 15:40:22 UTC
git commit: [flex-asjs] [refs/heads/develop] - DateField must now
dispatch initComplete so DataFieldView can use format bead.
Repository: flex-asjs
Updated Branches:
refs/heads/develop 23a7a05d6 -> bf0824431
DateField must now dispatch initComplete so DataFieldView can use format bead.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bf082443
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bf082443
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bf082443
Branch: refs/heads/develop
Commit: bf0824431157e51b4d366703eea29bb93c63403b
Parents: 23a7a05
Author: Peter Ent <pe...@apache.org>
Authored: Mon May 1 11:40:19 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Mon May 1 11:40:19 2017 -0400
----------------------------------------------------------------------
.../Basic/src/main/flex/org/apache/flex/html/DateField.as | 3 +++
.../src/main/flex/org/apache/flex/html/beads/DateFieldView.as | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bf082443/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.as
index c953773..aef01c7 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.as
@@ -23,6 +23,7 @@ package org.apache.flex.html
import org.apache.flex.core.IFormatBead;
import org.apache.flex.core.UIBase;
import org.apache.flex.core.ValuesManager;
+ import org.apache.flex.events.Event;
/**
* The change event is dispatched when the selectedDate is changed.
@@ -77,6 +78,8 @@ package org.apache.flex.html
addBead(bead);
}
}
+
+ dispatchEvent(new Event("initComplete"));
}
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bf082443/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DateFieldView.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
index 33bdfbb..547c8d1 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
@@ -116,10 +116,10 @@ package org.apache.flex.html.beads
_button.y = _textInput.y;
}
- IEventDispatcher(_strand).addEventListener("beadsAdded",handleBeadsAdded);
+ IEventDispatcher(_strand).addEventListener("initComplete",handleInitComplete);
}
- private function handleBeadsAdded(event:Event):void
+ private function handleInitComplete(event:Event):void
{
var formatter:IFormatBead = _strand.getBeadByType(IFormatBead) as IFormatBead;
formatter.addEventListener("formatChanged",handleFormatChanged);