examples/template_stealjs/funcunit/syn/resources/jquery.event.drag.js
function( f ) {
			var i, vec, newArr = [];

			for ( i = 0; i < this.array.length; i++ ) {
				newArr.push(f(this.array[i]));
			}
			vec = new $.Vector();
			return vec.update(newArr);
		}
function( f ) {
			var i, vec, newArr = [];

			for ( i = 0; i < this.array.length; i++ ) {
				newArr.push(f(this.array[i]));
			}
			vec = new $.Vector();
			return vec.update(newArr);
		}
function ( f ) { var i , vec , newArr = [ ] ; for ( i = 0 ; i < this . array . length ; i ++ ) { newArr . push ( f ( this . array [ i ] ) ) ; } vec = new $ . Vector ( ) ; return vec . update ( newArr ) ; }
Applys the function to every item in the vector.  Returns the new vector.
@param {Function} f
@return {jQuery.Vector} new vector class.
Applys the function to every item in the vector . Returns the new vector .