Comments (1)
Yes, events bubble, so you have two choices:
Delegate
$(document).on('cycle-before', '#parent-slideshow', function(e) {...
Filter
$('#parent-slideshow').on('cycle-before', function(e){
if (e.target != this)
return;
alert('parent');
}
from cycle2.
Related Issues (20)
- Lookahead loading with random order [SOLVED]
- Carousel Offset both sides
- How to avoid validation errors with <div class="cycle-slideshow".... tag HOT 1
- Replace $.trim() with String.prototype.trim() HOT 4
- Limit images loaded
- Неработает HOT 1
- issues with latest wordpress update HOT 7
- Captions and Overlay not displaying
- Embed youtube videos
- Slideshow Not Working
- Slides overlap content HOT 5
- Website is broken HOT 2
- I can't turn off the autoplay
- cycle2 stopped working! HOT 3
- When the page refreshes during screen size changes the carousel disappears HOT 1
- Custom Pager Template does not close parsed string
- Are `cycle-update-view-before/after` events safe to use in production code?
- Cycle2 prev/next function not working for me HOT 3
- [Solution] Add endless slides dynamically
- <div class="cycle-slideshow lightbox" data-cycle-prev="#prev-10606" data-cycle-next="#next-10606" data-cycle-pager="#pager-10606"> <!-- IMAGES --> <div id="prev-10606" class="cycle-prev"></div> <div id="next-10606" class="cycle-prev"></div> <div id="pager-10606" class="cycle-prev"></div> </div>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cycle2.