Created
May 11, 2010 13:13
-
-
Save dkln/397279 to your computer and use it in GitHub Desktop.
Merging two simple objects (like a hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ObjectUtils { | |
public static function mergeObjects(resultObject:Object, toMergeObject:Object):Object { | |
var setting:String; | |
for(setting in toMergeObject) | |
resultObject[setting] = toMergeObject[setting]; | |
return resultObject; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment