Skip to content

Commit

Permalink
REMOVED_FROM_STAGE Event solved
Browse files Browse the repository at this point in the history
  • Loading branch information
promatik committed Feb 25, 2014
1 parent 383f83f commit 9f1157d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion com/thanksmister/touchlist/controls/TouchList.as
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ package com.thanksmister.touchlist.controls
* */
protected function destroy(e:Event):void
{
removeEventListener(Event.REMOVED, destroy);
removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
removeListItems();
tapDelayTime = 0;
tapEnabled = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ package com.thanksmister.touchlist.renderers

public function TouchListItemRenderer()
{
addEventListener(Event.REMOVED, destroy);
addEventListener(Event.REMOVED_FROM_STAGE, destroy);

addEventListener(MouseEvent.MOUSE_DOWN, pressHandler);

Expand Down

0 comments on commit 9f1157d

Please sign in to comment.