/**
 * Created by fritz on 2/15/14.
 */
var path = require('path');

/**
 * easy way for circular module loading
 */
function requireFn(name) {
	return function () {
		var modulePath = path.dirname(module.parent.id);
		return require(path.resolve(modulePath, name));
	};
}

module.exports = requireFn;

/**
 * Created by fritz on 2/15/14.
 */
var path = require('path');

/**
 * easy way for circular module loading
 */
function requireFn(name) {
	return function () {
		var moduleDir = path.dirname(module.parent.id);
		return require(path.resolve(moduleDir, name));
	};
}

module.exports = requireFn;

fix argument naming