/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org License: LGPL 2.1: http://www.gnu.org/licenses/lgpl.html Authors: * Sebastian Werner (wpbasti) * Andreas Ecker (ecker) ************************************************************************ */ /* ************************************************************************ #module(core) ************************************************************************ */ qx.OO.defineClass("qx.lang.Array"); qx.lang.Array.fromArguments = function(args) { return Array.prototype.slice.call(args, 0); } /*! Utility function for padding/margin and all other shorthand handling. */ qx.lang.Array.fromShortHand = function(params) { var l = params.length; if (l > 4) { throw new Error("Invalid number of arguments!"); } var v; var list = []; for (var i=0; i