Permalink
Browse files

Fix repeaters and event bubbling problem with new delegation code tha…

…t affected CryptoTweets

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
  • Loading branch information...
1 parent 0d96531 commit c101fcf07171aeb329503abb04784925219c234b Ben Combee committed Mar 23, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/ui/Repeater.js
@@ -93,6 +93,11 @@ enyo.kind({
decorateEvent: function(inEventName, inEvent, inSender) {
if (inEvent) {
inEvent.index = this.index;
+ // update delegate during bubbling to account for proxy
+ // by moving the delegate up to the repeater level
+ if (inEvent.delegate && inEvent.delegate.owner === this) {
+ inEvent.delegate = this.owner;
+ }
}
this.inherited(arguments);
},

0 comments on commit c101fcf

Please sign in to comment.