lib/conbo.js
function(propertyName, singletonClass)
	{
		if (!propertyName) throw new Error('propertyName cannot be undefined');
		
		if (singletonClass === undefined)
		{
			conbo.warn('singletonClass for '+propertyName+' is undefined');
		}

		if (conbo.isClass(singletonClass))
		{
			var args = conbo.rest(arguments);

			if (args.length == 1 && singletonClass.prototype instanceof conbo.ConboClass)
			{
				args.push(this);
			}

			this.__singletons[propertyName] = new (Function.prototype.bind.apply(singletonClass, args))
		}
		else
		{
			this.__singletons[propertyName] = singletonClass;
		}
			
		return this;
	}
function(propertyName, singletonClass)
	{
		if (!propertyName) throw new Error('propertyName cannot be undefined');
		
		if (singletonClass === undefined)
		{
			conbo.warn('singletonClass for '+propertyName+' is undefined');
		}

		if (conbo.isClass(singletonClass))
		{
			var args = conbo.rest(arguments);

			if (args.length == 1 && singletonClass.prototype instanceof conbo.ConboClass)
			{
				args.push(this);
			}

			this.__singletons[propertyName] = new (Function.prototype.bind.apply(singletonClass, args))
		}
		else
		{
			this.__singletons[propertyName] = singletonClass;
		}
			
		return this;
	}
function ( propertyName , singletonClass ) { if ( ! propertyName ) throw new Error ( 'propertyName cannot be undefined' ) ; if ( singletonClass === undefined ) { conbo . warn ( 'singletonClass for ' + propertyName + ' is undefined' ) ; } if ( conbo . isClass ( singletonClass ) ) { var args = conbo . rest ( arguments ) ; if ( args . length == 1 && singletonClass . prototype instanceof conbo . ConboClass ) { args . push ( this ) ; } this . __singletons [ propertyName ] = new ( Function . prototype . bind . apply ( singletonClass , args ) ) } else { this . __singletons [ propertyName ] = singletonClass ; } return this ; }
Map class instance to a property name

To inject a property into a class, register the property name
with the Context and declare the value as undefined in your class
to enable it to be injected at run time

@example		context.mapSingleton('myProperty', MyModel);
@example		myProperty: undefined
Map class instance to a property name