Comments (5)
Is it possible that the if (some_trigger)
statement never becomes true
?
Asking because we have test cases for unbindArrive
function and all those test cases are passing so either the bug occur in some very specific case or some issue with your code.
from arrive.
I added console.log()
before unbinding to make sure with some_trigger
works. A record appears in the log, but arrive event fires again...
from arrive.
While debugging I found that length of _eventsBucket
is 0 when unbindArrive
calling.
from arrive.
Hmm...thanks. Will look into it over the coming weekend. I think it might be related to synchronous callback. Can you try unbind within a timer, like this setTimeout(function (){document.unbindArrive('.some_class')}, 1)
from arrive.
@Kesantielu It's very likely, that you might want to move your flag variable some_trigger
in the parent scope—just to the parent scope of your current logic.
from arrive.
Related Issues (20)
- Can we use this in Angular 4? HOT 1
- Feature request: respond to arrival of multiple elements HOT 3
- Possible Human Error | HOT 1
- [Feature request] Option to watch for text change HOT 2
- Can we get typescript types? HOT 1
- Watch for multiple classes HOT 2
- Option to let fire multiple times for a single element HOT 2
- Can't get it to work in pure JS HOT 22
- Error in readme.md HOT 1
- Remove dependency on jquery-2.1.0.min.js HOT 1
- HTMLElement.matches in old Opera
- Cannot read property '0' of undefined HOT 1
- Fire only once, total HOT 3
- Promise and Async/Await Support HOT 4
- Feature suggestion: Add timeout
- How to import from npm? HOT 3
- Detect page title change HOT 5
- delete please, created by mistake
- why it rescan elements exponentially? HOT 1
- jQuery selectors are not supported
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 arrive.