A tiny JavaScript library ("framework")
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bower.json
jasno.js
license.md
readme.md

readme.md

Jasno - a tiny JavaScript framework

<script type="text/javascript" src="jasno.js"></script>

Events

  • bool Jasno.addEvent (el, type, handler);
  • false Jasno.cancelEvent (event);
  • element Jasno.getSrcElement (event);

HTML class handling

  • void Jasno.addClass (el, className);
  • void Jasno.removeClass (el, className);
  • bool Jasno.hasClass (el, className);

CSS

  • string Jasno.getCss (el, propertyName);

JavaScript

  • bool Jasno.empty (data);
    Is given value empty (undefined, null, empty collection/array, empty object)?

Author: Jan Pecha (http://janpecha.iunas.cz/), 2012
License: New BSD License