https://github.com/davidvujic/almostvanilla.js
Almost vanilla JavaScript library
https://github.com/davidvujic/almostvanilla.js
Last synced: 10 months ago
JSON representation
Almost vanilla JavaScript library
- Host: GitHub
- URL: https://github.com/davidvujic/almostvanilla.js
- Owner: DavidVujic
- License: mit
- Created: 2014-11-26T19:11:52.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-07T19:35:09.000Z (about 10 years ago)
- Last Synced: 2025-02-01T13:47:10.092Z (12 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
almostvanilla.js
================
This is a little library that will help you write third party library free DOM manipulating JavaScript code. Well, almost (because almostvanilla.js could be characterized as a library, but a tiny one).
### Public API
* get: get a list of elements by a custom selector
* ev: get current triggered event, legacy browser safe
* evTarget: get triggered event target, legacy browser safe
* trigger: fire a DOM event from code
* addListeners: add DOM event listeners
* getClosest: get closest element by selector, traversing up the DOM tree
* isArray: check is an object an array
* hasAttribute: check if an element has a specific attribute