You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/12/23 08:41:28 UTC
[05/28] git commit: [flex-asjs] [refs/heads/develop] - leverage
IChild so it cross-compiles properly
leverage IChild so it cross-compiles properly
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d8f3b363
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d8f3b363
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d8f3b363
Branch: refs/heads/develop
Commit: d8f3b363d3eff3052313c7a935d40fc56e55c163
Parents: dd57f20
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 17 17:53:19 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 17 17:53:19 2014 -0800
----------------------------------------------------------------------
.../flex/core/StatesWithTransitionsImpl.as | 2 +-
.../FlexJS/src/org/apache/flex/core/IChild.js | 47 ++++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d8f3b363/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
index 0a7289a..bbc954b 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
@@ -189,7 +189,7 @@ package org.apache.flex.core
if (o is AddItems)
{
var ai:AddItems = AddItems(o);
- for each (var item:Object in ai.items)
+ for each (var item:IChild in ai.items)
{
var parent:IParent = item.parent as IParent;
parent.removeElement(item);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d8f3b363/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
new file mode 100644
index 0000000..dde711a
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
@@ -0,0 +1,47 @@
+/**
+ * Licensed 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.
+ */
+
+/**
+ * org.apache.flex.core.IChild
+ *
+ * @fileoverview
+ *
+ * @suppress {checkTypes}
+ */
+
+goog.provide('org.apache.flex.core.IChild');
+
+
+
+/**
+ * @interface
+ */
+org.apache.flex.core.IChild = function() {
+};
+
+
+/**
+ * @return {Object} The parent of the child.
+ */
+org.apache.flex.core.IChild.prototype.get_parent = function() {};
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org.apache.flex.core.IChild.prototype.FLEXJS_CLASS_INFO = {
+ names: [{ name: 'IChild', qName: 'org.apache.flex.core.IChild'}]
+};