Comments (4)
if I can't use 'event capturing', I must attach event of all of images.
Not necessarily. You can use event delegation:
eventie.bind( el, 'load', onCheck )
The useCapture
argument is not required for event delegation. Read more about useCapture on stack overflow: http://stackoverflow.com/a/7398447/182183
from eventie.
I didn't know it. Thank you for your lesson.
I fixed my codes. Thank you very much.
from eventie.
I reopen this issue.
Your opinion is right! but, some of the events are not supported bubbling!
Following events are not supported.
- https://developer.mozilla.org/en-US/docs/Web/Events/load
- https://developer.mozilla.org/en-US/docs/Web/Events/unload
- https://developer.mozilla.org/en-US/docs/Web/Events/focus
- https://developer.mozilla.org/en-US/docs/Web/Events/blur
Reference - http://stackoverflow.com/questions/5574207/html-dom-which-events-do-not-bubble
so, I test this cases.
- Event bubbling : http://codepen.io/sculove/pen/XmJeae/
- Event capturing : http://codepen.io/sculove/pen/WQbZvN/
To check loaded images I must use an event capturing.
What about supporting an event capturing?
from eventie.
Thanks for clarifying. I still feel like this feature is an edge case. I'll leave this PR open for a while to see if others are interested.
Also note, I'm dropping support for IE8 & 9 at the end the year, so I'm not likely to make any big changes to eventie any more.
from eventie.
Related Issues (4)
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 eventie.