Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D140310605 for ; Tue, 23 Dec 2014 07:41:24 +0000 (UTC) Received: (qmail 10926 invoked by uid 500); 23 Dec 2014 07:41:24 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 10892 invoked by uid 500); 23 Dec 2014 07:41:24 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 10875 invoked by uid 99); 23 Dec 2014 07:41:24 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 07:41:24 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6F23BA348AD; Tue, 23 Dec 2014 07:41:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Tue, 23 Dec 2014 07:41:28 -0000 Message-Id: In-Reply-To: <2a66ba97e000400dba6d916b65e53f0b@git.apache.org> References: <2a66ba97e000400dba6d916b65e53f0b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Wed Dec 17 17:53:19 2014 -0800 Committer: Alex Harui 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.>} + */ +org.apache.flex.core.IChild.prototype.FLEXJS_CLASS_INFO = { + names: [{ name: 'IChild', qName: 'org.apache.flex.core.IChild'}] +};