public/dashboard/bower_components/admin-lte/plugins/datatables/extensions/TableTools/js/dataTables.tableTools.js
function ( buttonSet, wrapper )
	{
		var buttonDef;

		for ( var i=0, iLen=buttonSet.length ; i<iLen ; i++ )
		{
			if ( typeof buttonSet[i] == "string" )
			{
				if ( typeof TableTools.BUTTONS[ buttonSet[i] ] == 'undefined' )
				{
					alert( "TableTools: Warning - unknown button type: "+buttonSet[i] );
					continue;
				}
				buttonDef = $.extend( {}, TableTools.BUTTONS[ buttonSet[i] ], true );
			}
			else
			{
				if ( typeof TableTools.BUTTONS[ buttonSet[i].sExtends ] == 'undefined' )
				{
					alert( "TableTools: Warning - unknown button type: "+buttonSet[i].sExtends );
					continue;
				}
				var o = $.extend( {}, TableTools.BUTTONS[ buttonSet[i].sExtends ], true );
				buttonDef = $.extend( o, buttonSet[i], true );
			}

			var button = this._fnCreateButton(
				buttonDef,
				$(wrapper).hasClass(this.classes.collection.container)
			);

			if ( button ) {
				wrapper.appendChild( button );
			}
		}
	}
function ( buttonSet, wrapper )
	{
		var buttonDef;

		for ( var i=0, iLen=buttonSet.length ; i<iLen ; i++ )
		{
			if ( typeof buttonSet[i] == "string" )
			{
				if ( typeof TableTools.BUTTONS[ buttonSet[i] ] == 'undefined' )
				{
					alert( "TableTools: Warning - unknown button type: "+buttonSet[i] );
					continue;
				}
				buttonDef = $.extend( {}, TableTools.BUTTONS[ buttonSet[i] ], true );
			}
			else
			{
				if ( typeof TableTools.BUTTONS[ buttonSet[i].sExtends ] == 'undefined' )
				{
					alert( "TableTools: Warning - unknown button type: "+buttonSet[i].sExtends );
					continue;
				}
				var o = $.extend( {}, TableTools.BUTTONS[ buttonSet[i].sExtends ], true );
				buttonDef = $.extend( o, buttonSet[i], true );
			}

			var button = this._fnCreateButton(
				buttonDef,
				$(wrapper).hasClass(this.classes.collection.container)
			);

			if ( button ) {
				wrapper.appendChild( button );
			}
		}
	}
function ( buttonSet , wrapper ) { var buttonDef ; for ( var i = 0 , iLen = buttonSet . length ; i < iLen ; i ++ ) { if ( typeof buttonSet [ i ] == "string" ) { if ( typeof TableTools . BUTTONS [ buttonSet [ i ] ] == 'undefined' ) { alert ( "TableTools: Warning - unknown button type: " + buttonSet [ i ] ) ; continue ; } buttonDef = $ . extend ( { } , TableTools . BUTTONS [ buttonSet [ i ] ] , true ) ; } else { if ( typeof TableTools . BUTTONS [ buttonSet [ i ] . sExtends ] == 'undefined' ) { alert ( "TableTools: Warning - unknown button type: " + buttonSet [ i ] . sExtends ) ; continue ; } var o = $ . extend ( { } , TableTools . BUTTONS [ buttonSet [ i ] . sExtends ] , true ) ; buttonDef = $ . extend ( o , buttonSet [ i ] , true ) ; } var button = this . _fnCreateButton ( buttonDef , $ ( wrapper ) . hasClass ( this . classes . collection . container ) ) ; if ( button ) { wrapper . appendChild ( button ) ; } } }
Take the user input arrays and expand them to be fully defined, and then add them to a given
DOM element
@method  _fnButtonDefinations
@param {array} buttonSet Set of user defined buttons
@param {node} wrapper Node to add the created buttons to
@returns void
@private
Take the user input arrays and expand them to be fully defined and then add them to a given DOM element