prototype.js Element.select is not side effect free
Reported by Bryan Larsen | April 20th, 2011 @ 02:02 AM
I was doing some testing of hobo-jquery and I ran across a peculiar bug.
I instrumented it with this:
alert(formlet.find("form :input").length);
alert(formlet.find("form :input").length);
alert(formlet.find("form :input").length);
On a page without any forms, it returned "5" the first two times, and returned "0" on the last.
I was able to get rid of it with the attached patch, which is completely unrelated and shouldn't have an effect on anything. It probably indicates a bug in prototype, but the latest version of prototype and lowpro do not fix the problem.
Comments and changes to this ticket
-
Bryan Larsen May 2nd, 2011 @ 12:51 PM
(from [1c377267f73d7f33b56ab7d2df0c1d259e55dc85]) [#944] strange workaround for a bug in prototype.js. You'll need to re-run
rails generate hobo:rapid
in your applications to pull in this fix.
https://github.com/tablatom/hobo/commit/1c377267f73d7f33b56ab7d2df0... -
Matt Jones September 15th, 2011 @ 06:36 PM
- State changed from new to resolved
Closing for now; I'm thinking the next step for this is to rewrite hobo-rapid in jQuery anyways.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Attachments
Referenced by
- 944 prototype.js Element.select is not side effect free (from [1c377267f73d7f33b56ab7d2df0c1d259e55dc85]) [#944] ...