An open API service indexing awesome lists of open source software.

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

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