Re: [Rails-spinoffs] newbie oo question

2006-05-24 Thread Jason Hummel
Thanks. I'm not actually trying to get a field value, but rather a JSON object, but I think your explanation is spot on. I'm trying to eval something that doesn't exist and it's breaking. Thanks a lot for the help. Jason ___ Rails-spinoffs mailing list

RE: [Rails-spinoffs] newbie oo question

2006-05-24 Thread Martinez, Andrew
rtinez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Hummel Sent: Wednesday, May 24, 2006 2:50 PM To: rails-spinoffs@lists.rubyonrails.org Subject:[Rails-spinoffs] newbie oo question Hey everyone, I'm trying to create an obj

[Rails-spinoffs] newbie oo question

2006-05-24 Thread Jason Hummel
Hey everyone, I'm trying to create an object that will have some properties predefined, but will allow me to pass in properties to override those standard props if needed. I'm trying something like: var myObject = Class.create(); myObject.prototype = { initialize: function(element, opti