lib/waterlock.js
function Waterlock(){
  events.EventEmitter.call(this);

  this.sails      = global.sails; 

  this.engine     = _.bind(this.engine, this)();
  this.config     = _.bind(this.config, this)();
  this.methods    = _.bind(this.methods, this)().collect();
  this.models     = _.bind(this.models, this)();
  this.actions    = _.bind(this.actions, this)();
  this.cycle      = _.bind(this.cycle, this)();

  // expose jwt so the implementing 
  // app doesn't need to require it.
  this.jwt        = require('jwt-simple');

  this.validator  = _.bind(this.validator, this)();
}
function Waterlock(){
  events.EventEmitter.call(this);

  this.sails      = global.sails; 

  this.engine     = _.bind(this.engine, this)();
  this.config     = _.bind(this.config, this)();
  this.methods    = _.bind(this.methods, this)().collect();
  this.models     = _.bind(this.models, this)();
  this.actions    = _.bind(this.actions, this)();
  this.cycle      = _.bind(this.cycle, this)();

  // expose jwt so the implementing 
  // app doesn't need to require it.
  this.jwt        = require('jwt-simple');

  this.validator  = _.bind(this.validator, this)();
}
function Waterlock ( ) { events . EventEmitter . call ( this ) ; this . sails = global . sails ; this . engine = _ . bind ( this . engine , this ) ( ) ; this . config = _ . bind ( this . config , this ) ( ) ; this . methods = _ . bind ( this . methods , this ) ( ) . collect ( ) ; this . models = _ . bind ( this . models , this ) ( ) ; this . actions = _ . bind ( this . actions , this ) ( ) ; this . cycle = _ . bind ( this . cycle , this ) ( ) ; // expose jwt so the implementing  // app doesn't need to require it. this . jwt = require ( 'jwt-simple' ) ; this . validator = _ . bind ( this . validator , this ) ( ) ; }
Creates a waterlock instance
Creates a waterlock instance