Go to file
2011-11-09 12:50:47 -05:00
docs Added IE event.preventDefault polyfill 2011-11-06 17:11:34 -05:00
src Updated header comment on store module 2011-11-09 12:50:47 -05:00
tests Various fixes 2011-11-03 16:04:35 -04:00
.gitignore Updated selector function to add context, privitized reverse_key_sort function in util module 2011-10-31 11:56:59 -04:00
combine.php Moved polyfills to their own file 2011-11-02 12:10:58 -04:00
kis-all.js Added IE event.preventDefault polyfill 2011-11-06 17:11:34 -05:00
kis-min.js Added IE event.preventDefault polyfill 2011-11-06 17:11:34 -05:00
README.md Updated location of development docs 2011-11-08 16:09:26 -05:00

Keep It Simple JS Library

A Minimal, Modular Javascript library for Modern browsers.

Aims to be fast, small, and easily split into individual modules.

You can create your own library by adding and removing modules from the src directory, and running the "combine.php" script. This will output a "kis-custom.js" file. (Be careful, as the script will overwrite any "kis-custom.js" file that already exists).

Browser support: IE8+, Latest versions of Firefox, Chrome, Safari, Opera

Basic Use:

  • Function: $_(selector).module.function(params);

Core Methods

properties:

  • el: The html object returned by the selector function.

functions:

  • each: For applying changes to every item matched by a selector

       $_(selector).each(callback);
    

    Example :

      $_(".foo").each(function(e){
      	$_(e).dom.text(value);
      }):
    
  • ext: For extending the library, adds this.el to the object or function supplied

      $_.ext("name", functionOrObject);
    

    Example:

      $_.ext("zip", function(){ //function });
      Adds 'zip' function to $_.
    
  • type: For getting the type of a variable

      $_.type(var);
    

Have a look at the /docs folder included with the library for documentation on the included modules. The development version of the documentation is avaliable at

[http://dev.timshomepage.net/github/kis-js/docs/]