Repository: flex-asjs Updated Branches: refs/heads/develop 84ece7b7f -> 5c13f2bd8
Remove dependency on IInputParser. Subclass JSONInputParser instead. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5c13f2bd Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5c13f2bd Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5c13f2bd Branch: refs/heads/develop Commit: 5c13f2bd8a6d60384e17627ff5881505ec0c41d2 Parents: 84ece7b Author: OmPrakash Muppirala <bigosma...@gmail.com> Authored: Mon Sep 21 13:28:17 2015 -0700 Committer: OmPrakash Muppirala <bigosma...@gmail.com> Committed: Mon Sep 21 13:29:30 2015 -0700 ---------------------------------------------------------------------- examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml | 3 --- .../src/controllers/GAJSONInputParser.as | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c13f2bd/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml b/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml index a389c83..33842df 100644 --- a/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml +++ b/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml @@ -51,9 +51,6 @@ limitations under the License. } </fx:Style> - <js:beads> - <js:ViewBaseDataBinding /> - </js:beads> <js:Label text="Number of users on flex.apache.org for last 30 days" x="10" y="10" /> <js:TextButton id="refreshButton" text="Refresh" x="300" y="10" click="refreshBtnClick(event)"/> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c13f2bd/examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as b/examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as index bb2a09d..2ff5916 100644 --- a/examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as +++ b/examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as @@ -1,14 +1,14 @@ package controllers { - import org.apache.flex.collections.parsers.IInputParser; + import org.apache.flex.collections.parsers.JSONInputParser; - public class GAJSONInputParser implements IInputParser + public class GAJSONInputParser extends JSONInputParser { public function GAJSONInputParser() { } - public function parseItems(s:String):Array + override public function parseItems(s:String):Array { var rowsArrayStartIndex:int = s.indexOf('"rows": [', 0); var rowsArrayEndIndex:int = s.indexOf("]]", rowsArrayStartIndex);