src/policy.js
function(manager, resource, config) {
  this.api = manager.api;
  this.debug = manager.debug;
  this.location = config.location;
  this.resource = resource;

  this.config = config;
  this.runtimes = [];
  this.policies = [];
  this.pending = {};
  util.handleEvents(this);

  this.add(manager, config.policy);
  this.runtimes[0].local = true;
}
function(manager, resource, config) {
  this.api = manager.api;
  this.debug = manager.debug;
  this.location = config.location;
  this.resource = resource;

  this.config = config;
  this.runtimes = [];
  this.policies = [];
  this.pending = {};
  util.handleEvents(this);

  this.add(manager, config.policy);
  this.runtimes[0].local = true;
}
function ( manager , resource , config ) { this . api = manager . api ; this . debug = manager . debug ; this . location = config . location ; this . resource = resource ; this . config = config ; this . runtimes = [ ] ; this . policies = [ ] ; this . pending = { } ; util . handleEvents ( this ) ; this . add ( manager , config . policy ) ; this . runtimes [ 0 ] . local = true ; }
The Policy registry for freedom.js.  Used to look up modules and provide
migration and coallesing of execution.
@Class Policy
@param {Manager} manager The manager of the active runtime.
@param {Resource} resource The resource loader of the active runtime.
@param {Object} config The local config.
@constructor
The Policy registry for freedom . js . Used to look up modules and provide migration and coallesing of execution .