RE: [Rails-spinoffs] Determining the type of an object

2006-06-12 Thread Gregory Hill
EMAIL PROTECTED] On Behalf Of Andrew Tetlaw > Sent: Friday, June 09, 2006 5:28 AM > To: rails-spinoffs@lists.rubyonrails.org > Subject: Re: [Rails-spinoffs] Determining the type of an object > > On 09/06/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > > Right... I thought I ju

Re: [Rails-spinoffs] Determining the type of an object

2006-06-09 Thread Martin Bialasinski
On 6/9/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: was just pointing out that proto does all that stuff No. Prototype.js actually does far less than the methods described in Douglas' article, you must have misread it. The current prototype implementation is at the bottom end of what is possible. A

Re: [Rails-spinoffs] Determining the type of an object

2006-06-09 Thread Ryan Gahl
Ok, my bad. Thought you were like unaware of prototype.js or something based on that link. Not trying to be "shirty", was just pointing out that proto does all that stuff, and didn't know if you knew or not... Not sure what knowing Douglas Crockford or not has to do with it. Oh well, whatever.On 6

Re: [Rails-spinoffs] Determining the type of an object

2006-06-09 Thread Andrew Tetlaw
On 09/06/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: Right... I thought I just said there was an instanceof operator in my post just before yours in this thread. I know it works in IE, not sure about the other browsers. Sorry, replied to Greg before I read yours. it does work in both IE and Moz, I

Re: [Rails-spinoffs] Determining the type of an object

2006-06-08 Thread Ryan Gahl
gt;  Sent: Wednesday, June 07, 2006 1:54 PM>  To: rails-spinoffs@lists.rubyonrails.org >  Subject: [Rails-spinoffs] Determining the type of an object>>>>> How do you determine the type of a prototype object? I have a hashmap that> was created using $H(). >>  var temp = new $H

Re: [Rails-spinoffs] Determining the type of an object

2006-06-08 Thread Andrew Tetlaw
June 07, 2006 1:54 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Determining the type of an object How do you determine the type of a prototype object? I have a hashmap that was created using $H(). var temp = new $H(); typeof temp: "object" temp.cons

Re: [Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Ryan Gahl
if _javascript_ supported true subclassing, but I don't believe it does.   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Casey O'Neill Sent: Wednesday, June 07, 2006 1:54 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs]

Re: [Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Casey O'Neill
but I don't believe it does.   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Casey O'Neill Sent: Wednesday, June 07, 2006 1:54 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Determining the type of an object   How do you de

RE: [Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Gregory Hill
O'Neill Sent: Wednesday, June 07, 2006 1:54 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Determining the type of an object   How do you determine the type of a prototype object? I have a hashmap that was created using $H(). var temp = new $H(); typeof temp: &q

[Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Casey O'Neill
How do you determine the type of a prototype object? I have a hashmap that was created using $H(). var temp = new $H();typeof temp: "object"temp.constructor (): [object Object]I know the the $H() is initially created by extending object but is there anyway to figure out if the temp object is of typ