Skip to content

Just a library of simple javascript functions which could be useful sometimes

Notifications You must be signed in to change notification settings

roccosportal/SimpleJSLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

SimpleJSLib

Description

Just a library of simple javascript functions which could be useful sometimes.

Usage

Include the function/object you need. You can call it via:

var instance = SimpleJSLib.<Class>.construct();

or inherit from via:

// look at /examples/base-object.md
var newClass = SimpleJSLib.<Class>.inherit(function(me, _protected){
	// alter contents here
	return me;
});

Have a look in the examples folder.

Contents

  • BaseObject

    Lets you create a class you can inherit from and instantiate.

  • EventHandler

    Inherit from this class and you can fire events and somebody else can listen to it.

  • MappingArray

    A class that allows you to associate a key to a value in an array.

  • Observable

    If you need to know when a value of a variable got changed, this could be quite useful.

  • SingleRequestQueue

    This object allows you to handle a request queue. You weather can append callbacks to a queue than triggers after a certain time or you can run asynchronus request and only the last was will be handled.

About

Just a library of simple javascript functions which could be useful sometimes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published