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
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
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
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
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
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
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]
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
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
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
10 matches
Mail list logo