crisphooks.js
function CrispHooks(options) {
	if (options && options.eventEmitter) {
		this.on = CrispHooks.prototype.hookSync;
		this.emit = CrispHooks.prototype.triggerSync;
	}
	this._hooks = {};
}
function CrispHooks(options) {
	if (options && options.eventEmitter) {
		this.on = CrispHooks.prototype.hookSync;
		this.emit = CrispHooks.prototype.triggerSync;
	}
	this._hooks = {};
}
function CrispHooks ( options ) { if ( options && options . eventEmitter ) { this . on = CrispHooks . prototype . hookSync ; this . emit = CrispHooks . prototype . triggerSync ; } this . _hooks = { } ; }
Main CrispHooks constructor.  This creates an object to which hooks can be added, and
on which hooks can be called.

@class CrispHooks
@constructor
@param {Object} options - Options changing the behavior of the hooks object
@param {Boolean} options.eventEmitter - Add EventEmitter-style aliases
Main CrispHooks constructor . This creates an object to which hooks can be added and on which hooks can be called .