So I\'m trying to pass an object into a function but every time I do it seemingly loses the values of the properties I\'m trying to access. There\'s a little bit of knockout js