flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mih...@apache.org
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.
Date Thu, 15 Jan 2015 17:13:51 GMT
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 <mihaic@apache.org>
Authored: Thu Jan 15 16:46:10 2015 +0000
Committer: Mihai Chira <mihaic@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);


Mime
View raw message