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 F047710C98 for ; Thu, 15 Jan 2015 17:13:47 +0000 (UTC) Received: (qmail 20749 invoked by uid 500); 15 Jan 2015 17:13:49 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 20652 invoked by uid 500); 15 Jan 2015 17:13:49 -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 20584 invoked by uid 99); 15 Jan 2015 17:13:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2015 17:13:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 5ADEEA44A0F; Thu, 15 Jan 2015 17:13:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mihaic@apache.org To: commits@flex.apache.org Date: Thu, 15 Jan 2015 17:13:51 -0000 Message-Id: <935cd4b38ab344b1a4e17b907ef3929f@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/6] git commit: [flex-utilities] [refs/heads/develop] - FLEX-34717 Before the dictionary loads, both hh and scm are null, so cleanUp() shouldn't assume they're not. FLEX-34717 Before the dictionary loads, both hh and scm are null, so cleanUp() shouldn't assume they're not. Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/9f2ef2b7 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/9f2ef2b7 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/9f2ef2b7 Branch: refs/heads/develop Commit: 9f2ef2b79bf5c247027450c19336dd1714318f11 Parents: a43c535 Author: Mihai Chira Authored: Thu Jan 15 16:46:10 2015 +0000 Committer: Mihai Chira Committed: Thu Jan 15 16:46:10 2015 +0000 ---------------------------------------------------------------------- .../src/com/adobe/linguistics/spelling/SpellUI.as | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/9f2ef2b7/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as ---------------------------------------------------------------------- diff --git a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as index bc83517..8ea4597 100644 --- a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as +++ b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as @@ -558,8 +558,16 @@ package com.adobe.linguistics.spelling * @private */ private function cleanUp():void { - hh.clearSquiggles(); - scm.cleanUp(); + if(hh != null) + { + hh.clearSquiggles(); + } + + if(scm != null) + { + scm.cleanUp(); + } + _actualParent.removeEventListener(Event.ADDED_TO_STAGE, addContextMenu); mTextField.removeEventListener(ScrollEvent.SCROLL, spellCheckScreen);