You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/02/24 23:48:03 UTC
[1/2] git commit: [flex-sdk] [refs/heads/develop] - FLEX-34108
changed code so it compile under 10.2/10.3 and still works under 11.0+
Repository: flex-sdk
Updated Branches:
refs/heads/develop c94066434 -> 9ab0f42d5
FLEX-34108 changed code so it compile under 10.2/10.3 and still works under 11.0+
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/39e52810
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/39e52810
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/39e52810
Branch: refs/heads/develop
Commit: 39e5281037b6cd75eceab647630a6138995b5625
Parents: c940664
Author: Justin Mclean <jm...@apache.org>
Authored: Mon Feb 24 19:24:20 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Mon Feb 24 19:24:20 2014 +1100
----------------------------------------------------------------------
.../framework/src/mx/collections/ArrayCollection.as | 13 +++++++++++--
.../framework/src/mx/collections/ArrayList.as | 14 ++++++++++++--
2 files changed, 23 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/39e52810/frameworks/projects/framework/src/mx/collections/ArrayCollection.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/collections/ArrayCollection.as b/frameworks/projects/framework/src/mx/collections/ArrayCollection.as
index 589cc41..ab195b9 100644
--- a/frameworks/projects/framework/src/mx/collections/ArrayCollection.as
+++ b/frameworks/projects/framework/src/mx/collections/ArrayCollection.as
@@ -19,7 +19,7 @@
package mx.collections
{
-
+import flash.system.ApplicationDomain;
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import flash.utils.IExternalizable;
@@ -158,7 +158,16 @@ public class ArrayCollection extends ListCollectionView implements IExternalizab
public function toJSON(s:String):*
{
var array:Array = toArray();
- return this["JSON"].stringify(array);
+
+ if (ApplicationDomain.currentDomain.hasDefinition("JSON"))
+ {
+ var json:Class = Class(ApplicationDomain.currentDomain.getDefinition("JSON"));
+ return json["stringify"](array);
+ }
+ else
+ {
+ return '{"error": "Not supported on Flash Player 10"}';
+ }
}
/**
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/39e52810/frameworks/projects/framework/src/mx/collections/ArrayList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/collections/ArrayList.as b/frameworks/projects/framework/src/mx/collections/ArrayList.as
index 117793a..42ac624 100644
--- a/frameworks/projects/framework/src/mx/collections/ArrayList.as
+++ b/frameworks/projects/framework/src/mx/collections/ArrayList.as
@@ -19,9 +19,10 @@
package mx.collections
{
-
+
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
+import flash.system.ApplicationDomain;
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import flash.utils.IExternalizable;
@@ -282,7 +283,16 @@ public class ArrayList extends EventDispatcher
public function toJSON(s:String):*
{
var array:Array = toArray();
- return this["JSON"].stringify(array);
+
+ if (ApplicationDomain.currentDomain.hasDefinition("JSON"))
+ {
+ var json:Class = Class(ApplicationDomain.currentDomain.getDefinition("JSON"));
+ return json["stringify"](array);
+ }
+ else
+ {
+ return '{"error": "Not supported on Flash Player 10"}';
+ }
}
/**
[2/2] git commit: [flex-sdk] [refs/heads/develop] - fix version
regexp and correct antelope tasks check (more recent version is lowercase)
Posted by jm...@apache.org.
fix version regexp and correct antelope tasks check (more recent version is lowercase)
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/9ab0f42d
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/9ab0f42d
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/9ab0f42d
Branch: refs/heads/develop
Commit: 9ab0f42d588e244bac2a68061ffb6fc9467c7be4
Parents: 39e5281
Author: Justin Mclean <jm...@apache.org>
Authored: Tue Feb 25 09:46:47 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Tue Feb 25 09:46:47 2014 +1100
----------------------------------------------------------------------
build.xml | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9ab0f42d/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 3f0ff10..30c67d5 100644
--- a/build.xml
+++ b/build.xml
@@ -68,7 +68,7 @@
<!--
Optional jars but should be in place for a real release build.
- For <grep> put AntelopeTasks_*.jar in this path.
+ For <grep> put antelopetasks*.jar in this path.
See version-update.
For <rat> apache-rat-0.8.jar and apache-rat-tasks-0.8.jar should be in classpath.
@@ -76,11 +76,11 @@
-->
<path id="anttask.classpath">
<fileset dir="${env.ANT_HOME}/lib">
- <include name="**/AntelopeTasks_*.jar"/>
+ <include name="**/antelopetasks*.jar"/>
<include name="**/apache-rat*.jar"/>
</fileset>
<fileset dir="${user.home}">
- <include name=".ant/lib/**/AntelopeTasks_*.jar"/>
+ <include name=".ant/lib/**/antelopetasks*.jar"/>
<include name=".ant/lib/**/apache-rat*.jar"/>
</fileset>
</path>
@@ -1161,7 +1161,7 @@ There are no known issues.
Update all frameworks Version.as files in the kit stagging area with the
latest version build number info.
- You need to place the AntelopeTasks_*.jar jar file in the anttask.classpath
+ You need to place the antelopetasks*.jar jar file in the anttask.classpath
in order to do this. If the jar isn't found, the update is skipped.
-->
<target name="version-update"
@@ -1176,14 +1176,17 @@ There are no known issues.
</target>
<target name="have-greptask" if="have.greptask">
- <taskdef name="grep" classname="ise.antelope.tasks.Find"
- classpathref="anttask.classpath"/>
+ <taskdef name="grep" classname="ise.antelope.tasks.Find" classpathref="anttask.classpath"/>
+ <tstamp>
+ <format property="build.number.date" pattern="yyyyMMdd" />
+ </tstamp>
+
<echo message="Updating all frameworks/projects/**/Version.as files with version ${release.version}.${build.number.date}"/>
<!-- Update all Version.as files in the kit frameworks directory-->
<replaceregexp>
- <regexp pattern='"[0-9].[0-9].[0-9].[0-9]";'/>
+ <regexp pattern='"[0-9]\.[0-9]+\.[0-9]+\.[0-9]+";'/>
<substitution expression='"${release.version}.${build.number.date}";'/>
<fileset dir="${FLEX_HOME}/temp/frameworks/projects">
<include name="**/Version.as"/>
@@ -1193,7 +1196,7 @@ There are no known issues.
<target name="no-greptask" unless="have.greptask">
<echo message="Version files not updated."/>
- <echo message="AntelopeTasks_*.jar not found in anttask.classpath"/>
+ <echo message="antelopetasks*.jar not found in anttask.classpath"/>
</target>
<target name="stage-locales"