export.js
//Clear user groups, leaving only the included "owner" user.
Clear user groups, leaving only the included "owner" user.
Clear user groups leaving only the included " owner " user .
function clearUserGroups() {
	for (var i = 0; metaData.userGroups && i < metaData.userGroups.length; i++) {
		metaData.userGroups[i].users = [];
		if (currentExport.hasOwnProperty("_ownership") && currentExport._ownership.hasOwnProperty("ownerId")) {
			metaData.userGroups[i].users.push({
				"id": currentExport._ownership.ownerId
			});
		}
	}
}
function clearUserGroups ( ) { for ( var i = 0 ; metaData . userGroups && i < metaData . userGroups . length ; i ++ ) { metaData . userGroups [ i ] . users = [ ] ; if ( currentExport . hasOwnProperty ( "_ownership" ) && currentExport . _ownership . hasOwnProperty ( "ownerId" ) ) { metaData . userGroups [ i ] . users . push ( { "id" : currentExport . _ownership . ownerId } ) ; } } }
Clear user groups, leaving only the included "owner" user.
Clear user groups leaving only the included " owner " user .