Comments (4)
Just because two popular ajax libraries do something doesn't make it a standard…
I honestly don't remember why we do both stopPropagation
& stopImmediatePropagation
but I do know that this would be a breaking API change and we'd need to do a major version bump & massive retesting of our websites. Is there any other reason than to match older libraries that this should be changed?
from ftdomdelegate.
@matthew-andrews, the behavior is both unexpected and undocumented, hence the issue report. My suggestion is to match the behavior users familiar with other libraries will expect, but it's fine if the library behaves differently -- at least document it.
It should be noted that stopImmediatePropagation()
itself is never actually called; it's breaking out of both the listener loop and the propagation loop by returning that achieves this effect by not calling the rest of the listeners as well as preventing simulated propagation. The comment above it says Stop propagation to subsequent callbacks
, which, to me sounds like a mix up the notion of DOM propagation with preventing other listeners from being called, so I wondered if the original behavior may have been coded in error.
from ftdomdelegate.
I wondered if the original behavior may have been coded in error.
Quite possibly. I'm not against this change as long as it actually fixes something but I've never come across a problem related to this – I just disagreed with the idea that we were non-standard.
from ftdomdelegate.
Alright I think you're right. We ought to fix this… Thanks for taking the time to report the bug so thoroughly. It'll need to be a major version bump though as there's a danger it'll create bugs.
Pinging @wheresrhys @georgecrawford @rowanbeentje
from ftdomdelegate.
Related Issues (20)
- Event namespaces: Interested in including them? HOT 7
- stopPropagation does not stop propagation to listeners added with ftdomdelegate
- Event listener execution order is backwards when useCapture = true HOT 1
- Browser compatible bower build HOT 6
- unexpected mouseover/mouseout behavior w/ capture
- multiple event binding HOT 3
- TypeError: 'undefined' is not a function (evaluating 'Delegate.prototype.handle.bind(this)') in Konacha HOT 5
- Waiting for window load event in README examples HOT 2
- Error on uglification HOT 2
- Click events are fired on disabled button with element like i tag. HOT 3
- useCapture not properly documented HOT 1
- Inconsistently named installs with bower HOT 6
- Custom events HOT 1
- Change requirements for IE8 support
- Why are there two names for this module? HOT 5
- IE10 click event doesn't work on an SVG. HOT 3
- Move to CircleCI and use occ to publish to npm on tag HOT 1
- ftdomdelegate complete breaking checklist HOT 1
- IE11 SCRIPT5007: Unable to get property 'call' of undefined or null reference
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 ftdomdelegate.