You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by yi...@apache.org on 2016/10/06 09:33:44 UTC
[09/27] git commit: [flex-asjs] [refs/heads/refactor-sprite] -
Attempt to fix the build which seems to ba breaking on docs
Attempt to fix the build which seems to ba breaking on docs
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b762ed63
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b762ed63
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b762ed63
Branch: refs/heads/refactor-sprite
Commit: b762ed6339c055b6d617197f2562121af0532504
Parents: 58e255c
Author: greg-dove <gr...@gmail.com>
Authored: Thu Sep 29 22:07:59 2016 +1300
Committer: greg-dove <gr...@gmail.com>
Committed: Thu Sep 29 22:07:59 2016 +1300
----------------------------------------------------------------------
.../flex/org/apache/flex/reflection/TypeDefinition.as | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b762ed63/frameworks/projects/Reflection/src/main/flex/org/apache/flex/reflection/TypeDefinition.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Reflection/src/main/flex/org/apache/flex/reflection/TypeDefinition.as b/frameworks/projects/Reflection/src/main/flex/org/apache/flex/reflection/TypeDefinition.as
index 346c6ed..f0d2c47 100755
--- a/frameworks/projects/Reflection/src/main/flex/org/apache/flex/reflection/TypeDefinition.as
+++ b/frameworks/projects/Reflection/src/main/flex/org/apache/flex/reflection/TypeDefinition.as
@@ -33,16 +33,18 @@ COMPILE::SWF {
public class TypeDefinition extends DefinitionWithMetaData
{
- COMPILE::JS
+
//js storage support for class aliases
+ COMPILE::JS
private static var _aliasMappings:Object={};
- COMPILE::JS
+
/**
* @private
* @param aliasName
* @param classObject
*/
+ COMPILE::JS
internal static function registerClassAlias(aliasName:String, classObject:Class ) :void{
var info:* = classObject.prototype.FLEXJS_CLASS_INFO;
if (info) {
@@ -67,12 +69,13 @@ COMPILE::SWF {
} else throw new Error("registerClassAlias error: classObject is not Reflectable "+classObject);
}
- COMPILE::JS
+
/**
* @private
* @param aliasName
- * @return
+ * @return the class that is mapped to by the alias
*/
+ COMPILE::JS
internal static function getClassByAlias(aliasName:String):Class {
return _aliasMappings[aliasName];
}