public/ckeditor/4.4dev/plugins/toolbar/plugin.js
function getItemDefinedGroups() {
			var groups = {},
				itemName, item, itemToolbar, group, order;

			for ( itemName in editor.ui.items ) {
				item = editor.ui.items[ itemName ];
				itemToolbar = item.toolbar || 'others';
				if ( itemToolbar ) {
					// Break the toolbar property into its parts: "group_name[,order]".
					itemToolbar = itemToolbar.split( ',' );
					group = itemToolbar[ 0 ];
					order = parseInt( itemToolbar[ 1 ] || -1, 10 );

					// Initialize the group, if necessary.
					groups[ group ] || ( groups[ group ] = [] );

					// Push the data used to build the toolbar later.
					groups[ group ].push( { name: itemName, order: order } );
				}
			}

			// Put the items in the right order.
			for ( group in groups ) {
				groups[ group ] = groups[ group ].sort( function( a, b ) {
					return a.order == b.order ? 0 :
						b.order < 0 ? -1 :
						a.order < 0 ? 1 :
						a.order < b.order ? -1 :
						1;
				} );
			}

			return groups;
		}
function getItemDefinedGroups() {
			var groups = {},
				itemName, item, itemToolbar, group, order;

			for ( itemName in editor.ui.items ) {
				item = editor.ui.items[ itemName ];
				itemToolbar = item.toolbar || 'others';
				if ( itemToolbar ) {
					// Break the toolbar property into its parts: "group_name[,order]".
					itemToolbar = itemToolbar.split( ',' );
					group = itemToolbar[ 0 ];
					order = parseInt( itemToolbar[ 1 ] || -1, 10 );

					// Initialize the group, if necessary.
					groups[ group ] || ( groups[ group ] = [] );

					// Push the data used to build the toolbar later.
					groups[ group ].push( { name: itemName, order: order } );
				}
			}

			// Put the items in the right order.
			for ( group in groups ) {
				groups[ group ] = groups[ group ].sort( function( a, b ) {
					return a.order == b.order ? 0 :
						b.order < 0 ? -1 :
						a.order < 0 ? 1 :
						a.order < b.order ? -1 :
						1;
				} );
			}

			return groups;
		}
function getItemDefinedGroups ( ) { var groups = { } , itemName , item , itemToolbar , group , order ; for ( itemName in editor . ui . items ) { item = editor . ui . items [ itemName ] ; itemToolbar = item . toolbar || 'others' ; if ( itemToolbar ) { // Break the toolbar property into its parts: "group_name[,order]".
 itemToolbar = itemToolbar . split ( ',' ) ; group = itemToolbar [ 0 ] ; order = parseInt ( itemToolbar [ 1 ] || - 1 , 10 ) ; // Initialize the group, if necessary.
 groups [ group ] || ( groups [ group ] = [ ] ) ; // Push the data used to build the toolbar later.
 groups [ group ] . push ( { name : itemName , order : order } ) ; } } // Put the items in the right order.
 for ( group in groups ) { groups [ group ] = groups [ group ] . sort ( function ( a , b ) { return a . order == b . order ? 0 : b . order < 0 ? - 1 : a . order < 0 ? 1 : a . order < b . order ? - 1 : 1 ; } ) ; } return groups ; }
Returns an object containing all toolbar groups used by ui items.
Returns an object containing all toolbar groups used by ui items .