simple javascript events handler
npm install jstools-eventsjEngine: Events 
===============



Installation
------------
`` sh`
npm install jstools-events --save`
or sh`
bower install jstools-events --save`
Usage
----- js
var obj = new Events();
obj.on('foo', function () {
flag = true;
});
obj.trigger('foo');
``
AngularJS Module
---------------- js
angular.module('myApp', ['jstools.events'])
.controller('AppCtrl', ['$scope', 'Events', function ($scope, Events) {
var obj = new Events();
obj.$$on('foo', function () {
flag = true;
});
obj.$$trigger('foo');
}]);
``