Set, get, on, trigger. My basic model toolkit.
npm install get-set#getSet
For small projects that don't necessitate a framework solution, I often want to reach into the backbone.js toolkit. getSet provides that minimal kit: events (on, trigger), get, and set.
##Usage
``javascript
//Define your constructor
var MyModel = function() {};
MyModel.prototpe = new GetSet();
//Now define the rest of your model...
MyModel.prototype...
`
##API
`javascript`
on(name, fn)
`javascript`
trigger(name, arg1, arg2 / , ... /)
`javascript`
get(key)
`javascript``
set(key,val);
set(object); //Object of key-val pairs