diff --git a/src/as/com/threerings/util/ArrayUtil.as b/src/as/com/threerings/util/ArrayUtil.as index 79448115a..acafcc23c 100644 --- a/src/as/com/threerings/util/ArrayUtil.as +++ b/src/as/com/threerings/util/ArrayUtil.as @@ -45,32 +45,6 @@ public class ArrayUtil return arr; } - /** - * Get an array containing the property keys of the specified object, in their - * natural iteration order. - */ - public static function keys (obj :Object) :Array - { - var arr :Array = []; - for (var k :* in obj) { // no "each": iterate over keys - arr.push(k); - } - return arr; - } - - /** - * Get an array containing the property values of the specified object, in their - * natural iteration order. - */ - public static function values (obj :Object) :Array - { - var arr :Array = []; - for each (var v :* in obj) { // "each" iterates over values - arr.push(v); - } - return arr; - } - /** * Creates a shallow copy of the array. * diff --git a/src/as/com/threerings/util/Util.as b/src/as/com/threerings/util/Util.as index 978282b65..d449ba1ac 100644 --- a/src/as/com/threerings/util/Util.as +++ b/src/as/com/threerings/util/Util.as @@ -87,6 +87,32 @@ public class Util } } + /** + * Get an array containing the property keys of the specified object, in their + * natural iteration order. + */ + public static function keys (obj :Object) :Array + { + var arr :Array = []; + for (var k :* in obj) { // no "each": iterate over keys + arr.push(k); + } + return arr; + } + + /** + * Get an array containing the property values of the specified object, in their + * natural iteration order. + */ + public static function values (obj :Object) :Array + { + var arr :Array = []; + for each (var v :* in obj) { // "each" iterates over values + arr.push(v); + } + return arr; + } + /** * Parse the 'value' object into XML safely. This is equivalent to new XML(value) * but offers protection from other code that may have changing the default settings