dist/jscow.js
function(childs) {
					
					var list = [];
					
					if ( childs instanceof Array ) {
						list = childs;
					} else {
						list.push(childs);
					}
					
					$.each(list, (function(self) {
						return function(i, child) {
							
							if (typeof child === 'object' && !child.__cfg__.__execInit__)	{
								
								var content = self.view().content();
								
								if ( content ) {
									content.append( child.placeholder() );
								} else { 
									content = self.placeholder();
								}
								
								child.parent(self);
								child.target(content);
								
								self.__children__.push(child);
								
							}
							
						};
					})(this));
					
					return this;
				}
function(childs) {
					
					var list = [];
					
					if ( childs instanceof Array ) {
						list = childs;
					} else {
						list.push(childs);
					}
					
					$.each(list, (function(self) {
						return function(i, child) {
							
							if (typeof child === 'object' && !child.__cfg__.__execInit__)	{
								
								var content = self.view().content();
								
								if ( content ) {
									content.append( child.placeholder() );
								} else { 
									content = self.placeholder();
								}
								
								child.parent(self);
								child.target(content);
								
								self.__children__.push(child);
								
							}
							
						};
					})(this));
					
					return this;
				}
function ( childs ) { var list = [ ] ; if ( childs instanceof Array ) { list = childs ; } else { list . push ( childs ) ; } $ . each ( list , ( function ( self ) { return function ( i , child ) { if ( typeof child === 'object' && ! child . __cfg__ . __execInit__ ) { var content = self . view ( ) . content ( ) ; if ( content ) { content . append ( child . placeholder ( ) ) ; } else { content = self . placeholder ( ) ; } child . parent ( self ) ; child . target ( content ) ; self . __children__ . push ( child ) ; } } ; } ) ( this ) ) ; return this ; }
Add a new component as a children into the current component.
This method should be used before the application will be run.
@method add
@param {Object} child Defines the reference to the insert component
@return {Object} child Defines the reference to the component itself
@chainable
Add a new component as a children into the current component . This method should be used before the application will be run .