/** * Class: JSL.number * This holds the number based operations. I am not sure why I have included this in the main code base - it don't have a lot of practical uses. * Arguments: number - The initial number - the original value */ (function() { function _number_init(number) { this.number = number; return this; } _number_init.prototype = { /** * Calls the function provided as the argument the specified number of times. It also * gives the number of the current run as an argument to the user function. * Example: * JSL.number(5).times(function(i) { alert("Run #"+i); }); //Executes the function 5 times */ "times":function(func) { var func = JSL._makeFunc(func,"i"); for(var i=0; i