flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/2] git commit: [flex-falcon] [refs/heads/develop] - for some reason the compiler started to care about whether this file existed or not
Date Tue, 25 Aug 2015 06:07:26 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop dd822abb8 -> c044d2c28


for some reason the compiler started to care about whether this file existed or not


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/9053aac3
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/9053aac3
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/9053aac3

Branch: refs/heads/develop
Commit: 9053aac35a83d3a749b3fa12a1ebf93df36b6425
Parents: dd822ab
Author: Alex Harui <aharui@apache.org>
Authored: Mon Aug 24 22:36:43 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Aug 24 22:36:43 2015 -0700

----------------------------------------------------------------------
 .../flexjs/files/StockDataJSONItemConverter.as  | 40 ++++++++++++++++++++
 1 file changed, 40 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9053aac3/compiler.jx.tests/test-files/flexjs/files/StockDataJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/StockDataJSONItemConverter.as b/compiler.jx.tests/test-files/flexjs/files/StockDataJSONItemConverter.as
new file mode 100644
index 0000000..a39606b
--- /dev/null
+++ b/compiler.jx.tests/test-files/flexjs/files/StockDataJSONItemConverter.as
@@ -0,0 +1,40 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+    import org.apache.flex.collections.converters.JSONItemConverter;
+    
+    public class StockDataJSONItemConverter extends JSONItemConverter
+    {
+        public function StockDataJSONItemConverter()
+        {
+            super();
+        }
+        
+        override public function convertItem(data:String):Object
+        {
+            var obj:Object = super.convertItem(data);
+			if (obj["query"]["count"] == 0)
+				return "No Data";
+			
+			obj = obj["query"]["results"]["quote"];
+			return obj;
+        }
+    }
+}
\ No newline at end of file


Mime
View raw message