Created
December 10, 2012 08:05
-
-
Save billybonks/4249218 to your computer and use it in GitHub Desktop.
Dot Opperator Interprater
This file contains hidden or 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
for(field in task.DisplayFields){ | |
var path = task.DisplayFields[field].split('.'); | |
var property = task; | |
for(subpath in path){ | |
property = property[path[subpath]] | |
} | |
DisplayAssociativeArray[task.DisplayFields[field]] = property; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment