You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by mi...@apache.org on 2015/01/15 18:13:51 UTC
[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 <mi...@apache.org>
Authored: Thu Jan 15 16:46:10 2015 +0000
Committer: Mihai Chira <mi...@apache.org>
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);