Comments (2)
Hey @qayyumabro. Nice to see that it helped. Unfortunately, nested classes are not supported in leave
(they are supported in arrive
function though). You can do something like this:
$(document).leave(".jfk-butterBar-shown", function() {
// additional checks here to make sure it's right element
})
From the documentation:
The first argument to leave must not be a descendent or child selector i.e. you cannot pass .page .test-elem
, instead, pass .test-elem
. It's because of a limitation in MutationObserver's api.
from arrive.
Thanks Uzair, that makes sense.
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
- 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.