Prototype 1.6.0.2 + Firefox 3 Enumerable problems

14 views
Skip to first unread message

bowmanjd

unread,
Mar 25, 2008, 10:00:40 AM3/25/08
to Ruby on Rails: Spinoffs
I am using Prototype 1.6.0.2 on Firefox 3.0b4.

The following does not work when I enter it in Firebug:

$A([1,2,3,4]).each(function(n) {alert(n);});

The above is just an example. Any array, using $A and any enumerable
method, returns the following:

TypeError: iterator.bind is not a function

Seems like some objects are not being extended correctly?

Using Prototype 1.5.0 on Firefox 3.0b4, this works fine.

Any suggestions?

Regards,
Jonathan Bowman

Andy Koch

unread,
Mar 25, 2008, 5:03:02 PM3/25/08
to Ruby on Rails: Spinoffs
I'm having the same problem, the enumerable methods are not working.

on WinXP

The issue occurrs on both FF3b4 and FF2.x, even after removing FF3b -
still occurrs on FF2 -

checked this on a Mac that's never had FF3b installed - and code works
as expected

going to try to remove and re-install FF2, that didn't work - going
to have to remove and purge FF - what a pain

Andy Koch

unread,
Mar 25, 2008, 5:09:47 PM3/25/08
to Ruby on Rails: Spinoffs
ok, that worked

on Winxp, removed FF (all versions)

then in Doc/Setting -> App data -> Mozilla -> delete Firefox folder

course now I need to re-install all add-ons

wonder if maybe this is a firebug issue and not a firefox...

Dan Dorman

unread,
Mar 25, 2008, 5:12:41 PM3/25/08
to rubyonrail...@googlegroups.com
On Tue, Mar 25, 2008 at 8:00 AM, bowmanjd <bowm...@gmail.com> wrote:
> $A([1,2,3,4]).each(function(n) {alert(n);});

Worked for me, but I haven't installed Firebug on my 3.0b4 yet.

:Dan

Andy Koch

unread,
Mar 25, 2008, 5:18:29 PM3/25/08
to Ruby on Rails: Spinoffs
OK,

I suspect this is probably a Firebug issue, when running code in FF3
without any Firebug then there is no problem.

Run code in FF2 with Firebug, no problem.

Run code in FF3 with Firebug beta installed, big problems.

Andy Koch

unread,
Mar 25, 2008, 5:21:38 PM3/25/08
to Ruby on Rails: Spinoffs
I think this is a Firebug issue, I had the firebug beta installed on
FF3

after purging and reinstalling I installed only the stable Firebug in
FF2,

when installing FF3 it states that Firebug is not compatible with FF3,
without the firebug beta installed then enumerable methods work as
expected

looks like I'll have to wait to develop on FF3 as I can't live without
Firebug

On Mar 25, 2:12 pm, "Dan Dorman" <dan.dor...@gmail.com> wrote:

bowmanjd

unread,
Mar 26, 2008, 11:01:21 AM3/26/08
to Ruby on Rails: Spinoffs
Andy Koch wrote:

> Run code in FF3 with Firebug beta installed, big problems.

Thanks for naming Firebug as the culprit -- it is indeed. Running the
code:

$A([1,2,3,4]).each(function(n) {alert(n);});

does not work from the Firebug (1.1.0b12) console, but it works fine
in the code of the page itself, even when Firebug is enabled. Sorry to
cry wolf!

Thanks for the help.

Regards,
Jonathan Bowman
Reply all
Reply to author
Forward
0 new messages