Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug: wasn't setting the current instance correctly

  • Loading branch information...
commit 84ca6c09248affa117525c30880e3c4481f9cb96 1 parent bcb22f4
@seanhess authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 source/src/net/seanhess/glue/Observe.as
View
12 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);
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.