3937692b48191b3be82199e7379ee5161e442f32Adam Moore function FakeArray() {
3937692b48191b3be82199e7379ee5161e442f32Adam Moore // ok, if we put the index in the prototype we could fool
3937692b48191b3be82199e7379ee5161e442f32Adam Moore // YAHOO.lang.isArray as long as the index is never
3937692b48191b3be82199e7379ee5161e442f32Adam Moore // updated. This isn't likely to happen unless someone
3937692b48191b3be82199e7379ee5161e442f32Adam Moore // is trying very hard to break it.
3937692b48191b3be82199e7379ee5161e442f32Adam Moore return this;
3937692b48191b3be82199e7379ee5161e442f32Adam Moore var str = "string",
3937692b48191b3be82199e7379ee5161e442f32Adam Moore obj = {foo:"bar"},
3937692b48191b3be82199e7379ee5161e442f32Adam Moore fun = function(){},
3937692b48191b3be82199e7379ee5161e442f32Adam Moore arr = ["foo", "bar"],
3937692b48191b3be82199e7379ee5161e442f32Adam Moore far = new FakeArray(),
3937692b48191b3be82199e7379ee5161e442f32Adam Moore dat = new Date(),
3937692b48191b3be82199e7379ee5161e442f32Adam Moore boo = false,
3937692b48191b3be82199e7379ee5161e442f32Adam Moore num = 123.123,