milo-core

milo

declaration
milo

Milo packages

  • minder - data reactivity, one or two way, shallow or deep, as you like it
  • config - milo configuration
  • util - logger, request, dom, check, error, etc.
  • classes - abstract and base classes
  • Messenger - generic Messenger used in most other milo classes, can be mixed into app classes too.
  • Model - Model class that emits messages on changes to any depth without timer based watching
var milo = {
    minder: require('./minder'),
    config: require('./config'),
    util: require('./util'),
    classes: require('./classes'),
    Messenger: require('./messenger'),
    Model: require('./model'),
    destroy: destroy,
    proto: _
};


// export for node/browserify
if (typeof module == 'object' && module.exports)    
    module.exports = milo;

// global milo for browser
if (typeof window == 'object')
    window.milo = milo;


function destroy() {
    milo.minder.destroy();
}