Closed GoogleCodeExporter closed 9 years ago
Actually it seems much more can go wrong when you set deferAudio to true. For
example, in a "lightbox"
page I'm working on I have the code:
E('container').on('click', function (click) {
if (API.hasClass(API.getEventTarget(click), 'lightbox')) {
return API.cancelDefault(click);
}
});
which works great...until I set deferAudio to true. After which the click
events are no longer cancelled.
Original comment by johnm...@gmail.com
on 29 Mar 2010 at 1:59
You've got the order wrong.
<script type="text/javascript">
API = { deferAudio: true };
</script>
<script type="text/javascript" src="mylib.js"></script>
The other way around will overwrite API. :)
Original comment by dmark.ci...@gmail.com
on 29 Mar 2010 at 2:44
Original issue reported on code.google.com by
johnm...@gmail.com
on 28 Mar 2010 at 11:45Attachments: