/**
 * Copyright © 2010, Res Interactive, LLC. All Rights Reserved.
 */
package com.tootsville.tootsbook.client;


/**
 * WRITEME: Document this type.
 *
 * @author brpocock@star-hope.org
 *
 */
public class TootsBookUtil {

	/**
	 * Crappy re-imp of Arrays.copyOf() ONLY for use in JavaScript
	 * context ONLY until/unless we can rewrite it to not suck
	 * 
	 * @param <T> WRITEME
	 * @param someArray WRITEME
	 * @param ignored WRITEME
	 * @return WRITEME
	 */
	@SuppressWarnings ("unchecked")
	public static <T extends Object> T [] copyOf (final T [] someArray,
			final int ignored) {
		T [] newCopy = (T []) new Object [someArray.length];
		for (int c = 0; c < someArray.length; c++ ) {
			newCopy [c] = someArray [c];
		}
		return newCopy;
	}

}
