Comments (12)
If you're still using Bower I would advice to pull OnScreen directly from the repo. Add this to your bower.json
:
"onScreen": "https://github.com/silvestreh/onScreen.git#old-jquery"
or install it using
bower install -s https://github.com/silvestreh/onScreen.git#old-jquery
As you can probably tell, this will pull the old jQuery plugin and not the latest release. For the time being, I'm only publishing to NPM to avoid the hassle of maintaining multiple package managers and have no plans to start publishing to other sources.
from onscreen.
I see. I can actually also pull it down via npm. Your dist folder has two versions: umd & es6. Do both of these require another lib to work or do they work out of the box like the old jQuery one? I need the check
functionality which I believe isn't available in the old version.
from onscreen.
You should use the UMD version to be safe as it should work with IE9+. The ES6 version uses JavaScript features not available in all browsers.
from onscreen.
Why don't support a standard bower install?
from onscreen.
@fede91it I'll quote myself from a few comments up π
I'm only publishing to NPM to avoid the hassle of maintaining multiple package managers
from onscreen.
Why the new version doesn't support bower and we must use old version?
from onscreen.
You don't have. Just remove the #old-jquery
hash that points to the branch with the old version.
bower install -s https://github.com/silvestreh/onScreen.git
But do note that you'll be getting the ES6 version, you'll have to run it though a transpiler like Babel.
from onscreen.
I don't have the /dist folder when I install via bower...
Ok I can compile by mylself, but we you don't provide a dist package also for bower and not only for npm?
from onscreen.
Because the dist/
directory holds transpiled code which has no place in the source repository. What bower does, basically, is clone the repo.
from onscreen.
Ok indeed
from onscreen.
@fede91it and everyone else that uses bower⦠you can pull the latest, compiled, version from unpkg. Just add this to your bower.json
file:
dependencies: {
"onscreen": "https://unpkg.com/onscreen/dist/on-screen.umd.min.js"
}
Or simply run this form a terminal:
bower install --save onscreen=https://unpkg.com/onscreen/dist/on-screen.umd.min.js
I'll put this info on the README for everyone to see π
from onscreen.
It's on the README file! π
from onscreen.
Related Issues (20)
- `on(event, selector, callback)` should support multi callbacks HOT 1
- First time leave event was not triggered on flex items HOT 5
- Example of destory HOT 3
- check IOS 6 Safari compatibility HOT 1
- Simplify `enter` / `leave` processing with callback: possible to pass the event type into the callback? HOT 3
- off() Method throws an error if trackedElements only has 'enter' or 'leave' HOT 6
- Debounce option is not used in debounced-scroll HOT 1
- Integration with React.js HOT 2
- a question
- Input: Improving scrolling performance HOT 1
- Events fire on page load, not on scroll HOT 2
- It doesn't seem that the check function works when the container is not window HOT 1
- the on.leave event seems not to be working HOT 1
- What about supporting Intersection Observer? HOT 2
- Ionic 3 Can't get this to work HOT 1
- Destroy does not remove MutationObserver HOT 1
- Typescript support HOT 4
- Option to not use debounced scrolling HOT 8
- Enter event firing for all elements matching selector even if outside of container HOT 6
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 onscreen.