lib/class_manager.js
function(base_path, suffix) {

		if (Lava.schema.DEBUG && !(base_path in this._sources)) Lava.t("[getPackageConstructor] Class not found: " + base_path);

		var path,
			current_class = this._sources[base_path],
			result = null;

		do {

			path = current_class.path + suffix;
			if (path in this.constructors) {

				result = this.constructors[path];
				break;

			}

			current_class = current_class.parent_class_data;

		} while (current_class);

		return result;

	}
function(base_path, suffix) {

		if (Lava.schema.DEBUG && !(base_path in this._sources)) Lava.t("[getPackageConstructor] Class not found: " + base_path);

		var path,
			current_class = this._sources[base_path],
			result = null;

		do {

			path = current_class.path + suffix;
			if (path in this.constructors) {

				result = this.constructors[path];
				break;

			}

			current_class = current_class.parent_class_data;

		} while (current_class);

		return result;

	}
function ( base_path , suffix ) { if ( Lava . schema . DEBUG && ! ( base_path in this . _sources ) ) Lava . t ( "[getPackageConstructor] Class not found: " + base_path ) ; var path , current_class = this . _sources [ base_path ] , result = null ; do { path = current_class . path + suffix ; if ( path in this . constructors ) { result = this . constructors [ path ] ; break ; } current_class = current_class . parent_class_data ; } while ( current_class ) ; return result ; }
Find a class that begins with `base_path` or names of it's parents, and ends with `suffix`
@param {string} base_path
@param {string} suffix
@returns {function}
Find a class that begins with base_path or names of it s parents and ends with suffix