Y.delegate on M3.1

Y.delegate on M3.1

بذریعہ Gareth J Barnard -
جوابات کی تعداد: 2
Core developers کی تصویر Particularly helpful Moodlers کی تصویر Plugin developers کی تصویر

Hello,

I've no idea if this is useful, but with Collapsed Topics I've discovered that in M3.1 YUI 'Y.delgate' will fail to work in terms of running the passed function unless the container within the delegated DOM node contains a link ('a' tag) on Safari on iPhone's / iPad's.  It might be that this has always been the case?  But I've implemented MDL-51802 for CT and discovered this.

Cheers,

Gareth

درجہ بندی کا اوسط: -
Gareth J Barnard کے جواب میں

Re: Y.delegate on M3.1

بذریعہ Tim Hunt -
Core developers کی تصویر Documentation writers کی تصویر Particularly helpful Moodlers کی تصویر Peer reviewers کی تصویر Plugin developers کی تصویر

Have you made a minimal reproducible test-case for that. I am sure what you describe matches what you saw, but it seems rather implausible. Y.delegate is a fairly thin wrapper around standard DOM events as implemented by web browsers. Presence of absence of a link should not affect that event dispatching mechanism.

Tim Hunt کے جواب میں

Re: Y.delegate on M3.1

بذریعہ Gareth J Barnard -
Core developers کی تصویر Particularly helpful Moodlers کی تصویر Plugin developers کی تصویر

Nope.  Only though observation and swapping between a version that does have the link and one that does not.  Can only reproduce on a physical iPod Touch anyway, cannot replicate locally with Chrome developer tools emulating as such.