1 /* ************************************************************************
3 qooxdoo - the new era of web development
8 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org
11 LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
14 * Sebastian Werner (wpbasti)
15 * Andreas Ecker (ecker)
17 ************************************************************************ */
19 /* ************************************************************************
23 ************************************************************************ */
25 qx.OO.defineClass("qx.lang.Object");
28 Function to check if a hash has any keys
30 qx.Class.isEmpty = function(h)
39 qx.Class.hasMinLength = function(h, j)
53 qx.Class.getLength = function(h)
64 qx.Class.getKeys = function(h)
74 qx.Class.getKeysAsString = function(h) {
75 return qx.lang.Object.getKeys(h).join(", ");
78 qx.Class.getValues = function(h)
88 qx.Class.mergeWith = function(vObjectA, vObjectB)
90 for (var vKey in vObjectB) {
91 vObjectA[vKey] = vObjectB[vKey];
97 qx.Class.carefullyMergeWith = function(vObjectA, vObjectB) {
98 for (vKey in vObjectB)
100 if (typeof vObjectA[vKey] === "undefined") {
101 vObjectA[vKey] = vObjectB[vKey];
108 qx.Class.merge = function(vObjectA)
110 var vLength = arguments.length;
112 for (var i=1; i<vLength; i++) {
113 qx.lang.Object.mergeWith(vObjectA, arguments[i]);
119 qx.Class.copy = function(vObject) {
120 return qx.lang.Object.mergeWith({}, vObject);