Permalink
Browse files

bug: wasn't setting the current instance correctly

  • Loading branch information...
1 parent bcb22f4 commit 84ca6c09248affa117525c30880e3c4481f9cb96 @seanhess committed May 2, 2009
Showing with 7 additions and 5 deletions.
  1. +7 −5 source/src/net/seanhess/glue/Observe.as
@@ -36,16 +36,18 @@ package net.seanhess.glue
var dispatcher:IEventDispatcher;
if (on)
- {
- (parent.selector as Glue).setCurrentInstance(target);
dispatcher = on;
- }
+
else
- {
dispatcher = super.getDispatcher(target);
- }
return dispatcher;
}
+
+ override protected function eventFiring(target:*, event:Event):void
+ {
+ super.eventFiring(target, event);
+ (parent.selector as Glue).setCurrentInstance(target);
+ }
}
}

0 comments on commit 84ca6c0

Please sign in to comment.